Skip to content

Commit 3ad6896

Browse files
committed
feat: set proper user and mail for the bot user
Signed-off-by: Sven Kanoldt <sven@d34dl0ck.me>
1 parent b0aa1e9 commit 3ad6896

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/release-plz.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ jobs:
2121
app-id: 1178949
2222
private-key: ${{ secrets.PRIVATE_KEY_5422M4N_BOT }}
2323

24+
- name: Get GitHub App User ID
25+
id: get-user-id
26+
run: echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
27+
env:
28+
GH_TOKEN: ${{ steps.app-token.outputs.token }}
29+
- run: |
30+
git config --global user.name '${{ steps.app-token.outputs.app-slug }}[bot]'
31+
git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com'
32+
2433
- name: Checkout repository
2534
uses: actions/checkout@v4
2635
with:

0 commit comments

Comments
 (0)