From f6fd706d179199eeee89a32069d285b29ec73a2f Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Mon, 3 Jun 2024 21:48:28 +0100 Subject: [PATCH] Ensure bump-version commits as a bot 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. --- .github/workflows/bump-version.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/bump-version.yaml b/.github/workflows/bump-version.yaml index d9dda44c..83dfcefa 100644 --- a/.github/workflows/bump-version.yaml +++ b/.github/workflows/bump-version.yaml @@ -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