From c4407e0348c154e1b56556b5c0a65008a7249cd6 Mon Sep 17 00:00:00 2001 From: meriy100 Date: Thu, 4 Apr 2024 18:19:39 +0900 Subject: [PATCH] =?UTF-8?q?fix(create-release-pr-for-gem):=20tag=20prefix?= =?UTF-8?q?=20=E3=81=8C=E5=8A=B9=E3=81=84=E3=81=A6=E3=81=84=E3=81=AA?= =?UTF-8?q?=E3=81=8B=E3=81=A3=E3=81=9F=20=20(#6)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/actions/create-release-pr-for-gem/action.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/actions/create-release-pr-for-gem/action.yml b/.github/actions/create-release-pr-for-gem/action.yml index f2fead3..a353cd4 100644 --- a/.github/actions/create-release-pr-for-gem/action.yml +++ b/.github/actions/create-release-pr-for-gem/action.yml @@ -25,6 +25,7 @@ runs: with: fetch-depth: 2 ref: ${{ inputs.base-branch }} + token: ${{ env.GITHUB_TOKEN }} - name: Conventional Changelog Action id: changelog uses: TriPSs/conventional-changelog-action@v5 @@ -36,8 +37,8 @@ runs: git-push: false skip-commit: true skip-tag: true - tab-prefix: ${{ inputs.tag-prefix }} - github-token: ${{ env.GITHUB_TOKEN }} + tag-prefix: ${{ inputs.tag-prefix }} + github-token: ${{ env.GITHUB_TOKEN }} - name: Commit version up commit if: ${{ steps.changelog.outputs.skipped == 'false' }} env: @@ -45,7 +46,7 @@ runs: run: | git config --local user.email "${{ inputs.commit-user-email }}" git config --local user.name "${{ inputs.commit-user-name }}" - git checkout -b release/v$VERSION + git checkout -b release/${{ inputs.tag-prefix }}$VERSION VERSION_FILE_RAW=$(awk '{gsub(/VERSION = '\''[^'\'']+'\''/, "VERSION = '\'$VERSION\''"); print}' ${{ inputs.version-file-path }}) echo "$VERSION_FILE_RAW" > ${{ inputs.version-file-path }} git add ${{ inputs.version-file-path }}