Skip to content

Commit 659588b

Browse files
committed
ci: Customize the homebrew commit author
1 parent cde15ba commit 659588b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/.goreleaser.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,6 @@ homebrew_casks:
101101
repository:
102102
owner: armsnyder
103103
name: homebrew-tap
104+
commit_author:
105+
name: "{{ .Env.COMMIT_AUTHOR_NAME }}"
106+
email: "{{ .Env.COMMIT_AUTHOR_EMAIL }}"

.github/workflows/release.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,19 @@ jobs:
2525
repositories: |
2626
gdshader-language-server
2727
homebrew-tap
28+
- name: Get GitHub App User ID
29+
id: get-user-id
30+
run: echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
31+
env:
32+
GH_TOKEN: ${{ steps.app-token.outputs.token }}
2833
- name: Build and upload assets
2934
uses: goreleaser/goreleaser-action@v6
3035
with:
3136
version: '~> v2'
3237
args: release --config .github/.goreleaser.yaml --clean
3338
env:
39+
COMMIT_AUTHOR_NAME: '${{ steps.app-token.outputs.app-slug }}[bot]'
40+
COMMIT_AUTHOR_EMAIL: '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com'
3441
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
3542
MACOS_SIGN_P12: ${{ secrets.MACOS_SIGN_P12 }}
3643
MACOS_SIGN_PASSWORD: ${{ secrets.MACOS_SIGN_PASSWORD }}

0 commit comments

Comments
 (0)