ci: name the missing tap secret instead of leaking gh's generic advice

This commit is contained in:
Michel de Graaf
2026-07-26 13:02:05 +02:00
parent 5161d0b758
commit 2fdb567a0e
+8 -1
View File
@@ -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