Skip to content

Commit

Permalink
fix(gh-actions): use correct bot user.email
Browse files Browse the repository at this point in the history
- 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 <fz@zorrn.net>
  • Loading branch information
z0rrn committed Dec 29, 2023
1 parent fbd9375 commit 838e338
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/update-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand All @@ -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
Expand Down Expand Up @@ -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 <fz@zorrn.net>"
-m "Signed-off-by: github-actions[bot] in the name of Frederik Zorn <fz@zorrn.net>"
git push origin main

0 comments on commit 838e338

Please sign in to comment.