Skip to content

Commit 8eff981

Browse files
committed
ci: fix email for commitizenbot
1 parent 61926a7 commit 8eff981

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/bumpversion.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
with:
2020
app-id: ${{ vars.APP_ID }}
2121
private-key: ${{ secrets.PRIVATE_KEY }}
22+
env:
23+
GH_TOKEN: ${{ steps.app-token.outputs.token }}
2224
- name: Check out
2325
uses: actions/checkout@v6
2426
with:
@@ -28,8 +30,11 @@ jobs:
2830
persist-credentials: false
2931
- uses: commitizen-tools/setup-cz@main
3032
with:
33+
# Information extracted from the app token
34+
# Under actions/create-github-app-token is documented how to generate username and email for the bot
35+
# The hardcoded number is the user ID of the bot account, found in the bot API
3136
git-user-name: "${{ steps.app-token.outputs.app-slug }}[bot]"
32-
git-user-email: "${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com"
37+
git-user-email: "274190853+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com"
3338
- id: bump-version
3439
run: |
3540
cz bump --yes

0 commit comments

Comments
 (0)