Skip to content

Commit

Permalink
fix: Generate release notesステップでトークンを指定
Browse files Browse the repository at this point in the history
  • Loading branch information
taiyme committed Oct 4, 2024
1 parent d943b6e commit bc473ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/actions/generate-release-notes/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Generate release notes
description: リリースノートを作成します

inputs:
token:
description: Token
required: false
version:
description: Version
required: true
Expand All @@ -17,7 +20,7 @@ runs:
- name: Prepare
env:
INPUT_VERSION: ${{ inputs.version }}
GH_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ inputs.token || github.token }}
shell: bash
run: |
current_version="$INPUT_VERSION"
Expand All @@ -43,7 +46,7 @@ runs:

- name: Generate notes
env:
GH_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ inputs.token || github.token }}
shell: bash
run: |
delimiter="$(openssl rand -hex 8)"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ jobs:
id: generate-release-notes
uses: ./.github/actions/generate-release-notes
with:
token: ${{ steps.app-token.outputs.token }}
version: ${{ needs.parse-version.outputs.new_version }}

- name: Set release notes
Expand Down

0 comments on commit bc473ca

Please sign in to comment.