From ec5b6d3f9111c7d22d65da98b040f8baf2020f0f Mon Sep 17 00:00:00 2001 From: Santiago Fraire Willemoes Date: Wed, 8 Apr 2026 08:46:50 +0100 Subject: [PATCH] ci: fix email for commitizenbot --- .github/workflows/bumpversion.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bumpversion.yml b/.github/workflows/bumpversion.yml index 7eeb3c176..c47e05351 100644 --- a/.github/workflows/bumpversion.yml +++ b/.github/workflows/bumpversion.yml @@ -19,6 +19,8 @@ jobs: with: app-id: ${{ vars.APP_ID }} private-key: ${{ secrets.PRIVATE_KEY }} + env: + GH_TOKEN: ${{ steps.app-token.outputs.token }} - name: Check out uses: actions/checkout@v6 with: @@ -28,8 +30,11 @@ jobs: persist-credentials: false - uses: commitizen-tools/setup-cz@main with: + # Information extracted from the app token + # Under actions/create-github-app-token is documented how to generate username and email for the bot + # The hardcoded number is the user ID of the bot account, found in the bot API git-user-name: "${{ steps.app-token.outputs.app-slug }}[bot]" - git-user-email: "${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com" + git-user-email: "274190853+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com" - id: bump-version run: | cz bump --yes