We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5a12d8 commit 0b03551Copy full SHA for 0b03551
.github/workflows/tag.yml
@@ -43,8 +43,10 @@ jobs:
43
44
- name: Commit and tag version bump
45
run: |
46
- git config user.name "github-actions"
47
- git config user.email "[email protected]"
+ # Attribute commits to the last committer on HEAD
+ git config --global user.email "$(git log -1 --pretty=format:'%ae')"
48
+ git config --global user.name "$(git log -1 --pretty=format:'%an')"
49
+ git remote set-url origin "https://x-access-token:${{ github.token }}@github.com/$GITHUB_REPOSITORY"
50
VERSION=$(ruby -e "require './lib/${{ env.GEM_NAME }}/version'; puts ${{ env.GEM_CLASS_NAME }}::VERSION")
51
git commit -am "Bump version to $VERSION"
52
git tag "v$VERSION"
0 commit comments