diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 943838f..f997ee7 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -43,9 +43,11 @@ jobs: - name: Commit and tag version bump run: | - git config user.name "github-actions" - git config user.email "github-actions@github.com" - git commit -am "Bump version to ${{ steps.version.outputs.bump }}" + # Attribute commits to the last committer on HEAD + git config --global user.email "$(git log -1 --pretty=format:'%ae')" + git config --global user.name "$(git log -1 --pretty=format:'%an')" + git remote set-url origin "https://x-access-token:${{ github.token }}@github.com/$GITHUB_REPOSITORY" VERSION=$(ruby -e "require './lib/${{ env.GEM_NAME }}/version'; puts ${{ env.GEM_CLASS_NAME }}::VERSION") + git commit -am "Bump version to $VERSION" git tag "v$VERSION" git push origin main "v$VERSION" diff --git a/Gemfile.lock b/Gemfile.lock index b8c6ba1..ec9a7ec 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - query_packwerk (0.2.2.pre) + query_packwerk (0.1.0) coderay packwerk parse_packwerk diff --git a/lib/query_packwerk/version.rb b/lib/query_packwerk/version.rb index c6373f6..34e8b7b 100644 --- a/lib/query_packwerk/version.rb +++ b/lib/query_packwerk/version.rb @@ -2,5 +2,5 @@ # frozen_string_literal: true module QueryPackwerk - VERSION = '0.2.2.pre' + VERSION = '0.1.0' end