Skip to content

Commit

Permalink
fix(create-release-pr-for-gem): tag prefix が効いていなかった (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
meriy100 authored Apr 4, 2024
1 parent 09b4f67 commit c4407e0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/actions/create-release-pr-for-gem/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -36,16 +37,16 @@ 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:
VERSION: ${{ steps.changelog.outputs.version }}
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 }}
Expand Down

0 comments on commit c4407e0

Please sign in to comment.