Skip to content

Commit

Permalink
Ensure bump-version commits as a bot
Browse files Browse the repository at this point in the history
Use actor's username for the commit author, but use the bot email since
we don't have access to user's display names or emails.
  • Loading branch information
MattSturgeon committed Jun 6, 2024
1 parent d028c80 commit f6fd706
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/bump-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ jobs:
# We need to commit as a user to ensure CI is run on the commit
# We need to push as an admin/owner to bypass branch-protection
token: ${{ secrets.HASHALITE_PAT }}
# Ensure we commit as a bot, since we can't reliably get an author slug from `github.actor`
commit_user_name: github-actions[bot]
commit_user_email: 41898282+github-actions[bot]@users.noreply.github.com
commit_author: ${{ github.actor }} <41898282+github-actions[bot]@users.noreply.github.com>
# The commit message, specify the new version
commit_message: Bump version to ${{ steps.new_props.outputs.mod_version }}

- name: Summarize
Expand Down

0 comments on commit f6fd706

Please sign in to comment.