From 838e338af5207487ee70b090fff49c4a8a2a5893 Mon Sep 17 00:00:00 2001 From: Frederik Zorn Date: Fri, 29 Dec 2023 11:57:49 +0100 Subject: [PATCH] fix(gh-actions): use correct bot user.email - new user.email/user.name to make clear that gh-actions made that commit - rename git token used for authentication Signed-off-by: Frederik Zorn --- .github/workflows/update-version.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/update-version.yml b/.github/workflows/update-version.yml index aea6a03..5f8b53e 100644 --- a/.github/workflows/update-version.yml +++ b/.github/workflows/update-version.yml @@ -17,7 +17,7 @@ jobs: # use ubuntu as runner runs-on: ubuntu-latest - # add GH token to secrets as GH_ANKI_VERSION_TOKEN + # add GH token to secrets as GH_UPDATE_ANKI # with write access to repository # to allow workflow to write to repository # @@ -28,7 +28,7 @@ jobs: - name: Checkout the repository uses: actions/checkout@v4 with: - token: ${{ secrets.GH_ANKI_VERSION_TOKEN }} + token: ${{ secrets.GH_UPDATE_ANKI }} - name: Setup yq uses: mikefarah/yq@v4 @@ -61,9 +61,9 @@ jobs: - name: Set up git email/name a. commit changes if: ${{ steps.set-op.outputs.software-version != steps.get-release.outputs.name }} run: | - git config user.name z0rrn-bot - git config user.email fz@zorrn.net + git config user.name 'github-actions[bot]' + git config user.email 'github-actions[bot]@users.noreply.github.com' git add ./anki-sync-server/values.yml git commit -m "chore(anki-sync-server): bump version to ${{ steps.get-release.outputs.name }}" \ - -m "Signed-off-by: github-actions in the name of Frederik Zorn " + -m "Signed-off-by: github-actions[bot] in the name of Frederik Zorn " git push origin main