feat: Homebrew tap auto-update on release + brew install instructions#313
feat: Homebrew tap auto-update on release + brew install instructions#313
Conversation
…ctions - Add 'Compute Mac SHA256' and 'Update Homebrew tap' steps to create-release job in build.yml — dispatches to PureWeen/homebrew-tap on non-prerelease tags with version + SHA256 - Add 'Install with Homebrew' section to README with brew tap/install - Fix Copilot CLI install instruction (npm install -g @github/copilot) Requires HOMEBREW_TAP_TOKEN secret with repo scope on PureWeen/PolyPilot. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…w tap step - Add continue-on-error: true to prevent tap failure from killing release job - Add if-guard to skip step when HOMEBREW_TAP_TOKEN is not set - Use --input heredoc for proper nested JSON in client_payload Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Step-level env vars are not available in the same step's if condition evaluation. Use secrets.HOMEBREW_TAP_TOKEN directly in the if expression which is the correct GitHub Actions pattern for optional-secret guards. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
PR #313 Re-Review Report — Post-Fix (5-Model Consensus)CI Status: Previous Findings Status
Fix Note: env context correctionThe initial fix used Final State of
|
The 'secrets.HOMEBREW_TAP_TOKEN' reference in the step-level 'if' condition caused GitHub Actions to reject the entire workflow at parse time (0 jobs created). Every push to main since PR #313 has been broken by this. Fix: remove the secrets check from the 'if' condition and instead check the GH_TOKEN env var at runtime with a shell guard. Also replace the indented heredoc (which wouldn't terminate properly) with a piped echo for the JSON payload. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…335) ## Problem Every push to main since PR #313 (Homebrew tap auto-update) has failed with **"This run likely failed because of a workflow file issue"** — zero jobs created. **Root cause:** The step-level `if` condition on the "Update Homebrew tap" step used `secrets.HOMEBREW_TAP_TOKEN != ''`, which causes GitHub Actions to reject the entire workflow at parse time. ## Fix 1. **Remove `secrets` from the `if` condition** — use a runtime shell guard (`if [ -z "$GH_TOKEN" ]`) instead 2. **Replace indented heredoc with piped echo** — the original `EOF` delimiter was indented (wouldn't terminate properly in a YAML block scalar) ## Verification - Last green build: [#22873258217](https://github.com/PureWeen/PolyPilot/actions/runs/22873258217) (before PR #313) - First red build: [#22876701610](https://github.com/PureWeen/PolyPilot/actions/runs/22876701610) (PR #313 merge) - All 16+ subsequent pushes to main have failed with the same workflow parse error Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Changes
build.yml: Adds two steps to
create-releasejob:Compute Mac SHA256— hashesPolyPilot.zipfor the caskUpdate Homebrew tap— dispatchesrelease-publishedevent to PureWeen/homebrew-tap with version + SHA256 (skipped for prereleases)README.md: Adds
Install with Homebrewsection (brew tap PureWeen/tap && brew install --cask polypilot) and fixes the Copilot CLI install commandHomebrew Tap
The tap at PureWeen/homebrew-tap is already set up with:
brew install --cask polypilot— Mac Catalyst GUI app (auto-installscopilot-clias a dependency)brew install polypilot-console— Cross-platform CLISetup Required
Add a
HOMEBREW_TAP_TOKENsecret to this repo — a fine-grained PAT scoped toPureWeen/homebrew-tapwith Contents: Read and write permission.