From 2fdb567a0e29c61922261ca899b33cb67d128919 Mon Sep 17 00:00:00 2001 From: Michel de Graaf Date: Sun, 26 Jul 2026 13:02:05 +0200 Subject: [PATCH] ci: name the missing tap secret instead of leaking gh's generic advice --- .github/workflows/release.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3a6743c..1648d38 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -207,4 +207,11 @@ jobs: - name: Dispatch the tap's formula workflow env: GH_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }} - run: gh workflow run formula.yml --repo michel/homebrew-tap + run: | + # gh answers a missing token with generic "set GH_TOKEN" advice, which + # reads like a workflow bug rather than a secret that needs filling in. + [ -n "$GH_TOKEN" ] || { + echo "::error::HOMEBREW_TAP_TOKEN is empty - set it to a PAT with Actions: write on michel/homebrew-tap. The tap's hourly cron will pick this release up in the meantime." + exit 1 + } + gh workflow run formula.yml --repo michel/homebrew-tap