From e6647f8df4e8978499c30cfda252143a4cb2be73 Mon Sep 17 00:00:00 2001 From: Lois Dextrous Date: Tue, 10 Mar 2026 20:47:47 +0100 Subject: [PATCH] feat: update homebrew tap on release Dispatch repository_dispatch to aliou/homebrew-toolbox after creating a GitHub release. Requires TAP_GITHUB_TOKEN secret. Amp-Thread-ID: https://ampcode.com/threads/T-019cd943-d492-7728-9dd6-f4b16103cba8 Co-authored-by: Amp --- .github/workflows/version.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml index 6ba9f5f..0cd312f 100644 --- a/.github/workflows/version.yml +++ b/.github/workflows/version.yml @@ -130,3 +130,18 @@ jobs: SKILL.md env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Update Homebrew tap + if: steps.check.outputs.hasChangesets == 'false' || inputs.force_release + run: | + VERSION=$(jq -r '.version' package.json) + DARWIN_SHA256=$(sha256sum dist/linear-darwin-arm64 | awk '{print $1}') + gh api repos/aliou/homebrew-toolbox/dispatches \ + -f event_type=update-formula \ + -f 'client_payload[formula]=linear-cli' \ + -f "client_payload[version]=${VERSION}" \ + -f 'client_payload[binary]=linear' \ + -f 'client_payload[repo]=aliou/linear-cli' \ + -f "client_payload[sha256]=${DARWIN_SHA256}" + env: + GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }} -- 2.51.2