Skip to content

Commit 1979766

Browse files
authored
build: use app as commit author (#545)
1 parent 4b48384 commit 1979766

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,18 @@ jobs:
8383
with:
8484
name: isthmus-macOS-latest
8585
path: native/libs
86+
- name: Get bot user ID
87+
id: bot-user-id
88+
run: |
89+
echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
90+
env:
91+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
8692
- name: Run semantic-release
8793
run: ./ci/release/run.sh
8894
env:
8995
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
96+
GIT_AUTHOR_EMAIL: "${{ steps.bot-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com"
97+
GIT_COMMITTER_EMAIL: "${{ steps.bot-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com"
9098
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
9199
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
92100
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}

0 commit comments

Comments
 (0)