From 1f806fd44dc8daf7d1e70e023347c5eaeafab814 Mon Sep 17 00:00:00 2001 From: Aleksandr Bogomiakov Date: Mon, 23 Nov 2026 18:29:06 +0200 Subject: [PATCH] ci: dispatch Homebrew update after publishing Furumi --- .github/workflows/release.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2f87264..c62644f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -107,3 +107,27 @@ jobs: --title "furumi ${RELEASE_TAG}" \ --notes "Release ${RELEASE_TAG}" \ --verify-tag + + update-homebrew: + name: Dispatch Homebrew formula update + needs: publish + if: github.server_url == 'https://github.com' && github.repository == 'Furumi-stack/furumi-tui' + runs-on: ubuntu-latest + permissions: {} + steps: + - name: Trigger workflow in the Homebrew tap + env: + GH_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }} + RELEASE_TAG: ${{ github.ref_name }} + run: | + set -euo pipefail + if [[ ! "$RELEASE_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then + echo "Skipping Homebrew for non-stable tag $RELEASE_TAG" + exit 0 + fi + if [[ -z "$GH_TOKEN" ]]; then + echo "::error::Set the HOMEBREW_TAP_TOKEN repository secret to dispatch the Homebrew update." + exit 1 + fi + gh workflow run update-furumi.yml \ + --repo house-of-vanity/homebrew-tap --ref main --raw-field "tag=$RELEASE_TAG"