Skip to content

Commit c8445de

Browse files
committed
Trying a homebrew release again
1 parent 704d935 commit c8445de

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,17 @@ jobs:
9595
- name: Trigger Homebrew tap update
9696
env:
9797
GH_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
98+
PAYLOAD: |
99+
{
100+
"formula": "git-interactive",
101+
"template_url": "https://raw.githubusercontent.com/earlye/git-interactive/v${{ needs.version.outputs.version }}/homebrew/git-interactive.rb.template",
102+
"version": "${{ needs.version.outputs.version }}",
103+
"arm64_url": "https://github.com/earlye/git-interactive/releases/download/v${{ needs.version.outputs.version }}/git-interactive-darwin-arm64-v${{ needs.version.outputs.version }}.tar.gz",
104+
"arm64_sha": "${{ needs.release.outputs.arm64_sha }}",
105+
"x86_64_url": "https://github.com/earlye/git-interactive/releases/download/v${{ needs.version.outputs.version }}/git-interactive-darwin-x86_64-v${{ needs.version.outputs.version }}.tar.gz",
106+
"x86_64_sha": "${{ needs.release.outputs.x86_64_sha }}"
107+
}
98108
run: |
99-
VERSION="${{ needs.version.outputs.version }}"
100109
gh api repos/earlye/homebrew-tap/dispatches \
101110
-f event_type=update-formula \
102-
-f client_payload="{
103-
\"formula\": \"git-interactive\",
104-
\"template_url\": \"https://raw.githubusercontent.com/earlye/git-interactive/v${VERSION}/homebrew/git-interactive.rb.template\",
105-
\"version\": \"${VERSION}\",
106-
\"arm64_url\": \"https://github.com/earlye/git-interactive/releases/download/v${VERSION}/git-interactive-darwin-arm64-v${VERSION}.tar.gz\",
107-
\"arm64_sha\": \"${{ needs.release.outputs.arm64_sha }}\",
108-
\"x86_64_url\": \"https://github.com/earlye/git-interactive/releases/download/v${VERSION}/git-interactive-darwin-x86_64-v${VERSION}.tar.gz\",
109-
\"x86_64_sha\": \"${{ needs.release.outputs.x86_64_sha }}\"
110-
}"
111+
-F client_payload="${PAYLOAD}"

0 commit comments

Comments
 (0)