Skip to content

Commit dcfc473

Browse files
authored
Merge pull request #20 from larkly/feat/homebrew-tap-dispatch
Notify homebrew-tap on release
2 parents 618a8f7 + f408ed8 commit dcfc473

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,26 @@ jobs:
7272
files: |
7373
lazystack-*
7474
SHA256SUMS
75+
76+
- name: Parse checksums
77+
id: shas
78+
run: |
79+
echo "darwin_arm64=$(grep darwin-arm64 SHA256SUMS | awk '{print $1}')" >> "$GITHUB_OUTPUT"
80+
echo "darwin_amd64=$(grep darwin-amd64 SHA256SUMS | awk '{print $1}')" >> "$GITHUB_OUTPUT"
81+
echo "linux_arm64=$(grep linux-arm64 SHA256SUMS | awk '{print $1}')" >> "$GITHUB_OUTPUT"
82+
echo "linux_amd64=$(grep linux-amd64 SHA256SUMS | awk '{print $1}')" >> "$GITHUB_OUTPUT"
83+
84+
- name: Update Homebrew tap
85+
uses: peter-evans/repository-dispatch@v3
86+
with:
87+
token: ${{ secrets.HOMEBREW_TAP_TOKEN }}
88+
repository: larkly/homebrew-tap
89+
event-type: update-formula
90+
client-payload: |
91+
{
92+
"version": "${{ env.VERSION }}",
93+
"sha256_darwin_arm64": "${{ steps.shas.outputs.darwin_arm64 }}",
94+
"sha256_darwin_amd64": "${{ steps.shas.outputs.darwin_amd64 }}",
95+
"sha256_linux_arm64": "${{ steps.shas.outputs.linux_arm64 }}",
96+
"sha256_linux_amd64": "${{ steps.shas.outputs.linux_amd64 }}"
97+
}

0 commit comments

Comments
 (0)