Skip to content

feat: skip pr-build-zip rebuild unless commit has #build-zip - #83

Merged
lihsaa591 merged 2 commits into
masterfrom
tg-autopilot/gate-zip-build-on-commit-marker
Sep 10, 2026
Merged

feat: skip pr-build-zip rebuild unless commit has #build-zip#83
lihsaa591 merged 2 commits into
masterfrom
tg-autopilot/gate-zip-build-on-commit-marker

Conversation

@lihsaa591

Copy link
Copy Markdown
Contributor

Summary

Actions minutes usage has been increasing since every push to an open PR triggers a full rebuild. Restructures the reusable pr-build-zip.yml into a cheap gate job (no checkout, just reads the pushed commit's message) and the actual build job, gated on the gate job's decision:

  • PR opened / reopened / ready-for-review, or a manual workflow_dispatch: always builds.
  • A follow-up push (synchronize): only builds if the commit message contains #build-zip (case-insensitive substring).

This reverses a documented Phase 1 decision against commit-message gating (see SETUP.md's "Design notes" — a magic token "relies on people remembering it and gives reviewers nothing by default"). That tradeoff is being accepted now specifically to cut Actions minutes; decided not to add a skip notice comment to keep it as cheap/quiet as possible.

Affects every repo using this reusable workflow at @master — no caller-side changes needed.

Test plan

  • Validated live on themegrill/colormag before merging (temporarily pointed its caller at this branch): opened a test PR (built), pushed without #build-zip (skipped), pushed with #build-zip (built) — see comments below.
  • Watch the next few real PRs across repos for correct behavior post-merge.

…d-zip

Actions minutes were increasing since every push to an open PR rebuilds the
full ZIP. Splits the single job into a cheap gate job (checks the pushed
commit's message) and the actual build job, gated on the gate job's output.
Opened/reopened/ready_for_review PRs and manual dispatch always build --
only a follow-up push (synchronize) needs #build-zip in the commit message.

This reverses a documented Phase 1 decision against commit-message gating
(see SETUP.md's Design notes) -- that tradeoff (discoverability) is being
accepted now specifically to cut Actions minutes.
@lihsaa591
lihsaa591 merged commit e9f213b into master Sep 10, 2026
@lihsaa591
lihsaa591 deleted the tg-autopilot/gate-zip-build-on-commit-marker branch September 10, 2026 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants