fix(ci): gate deploy on quality checks #13

Merged
barrettruth merged 1 commit from ci/gate-publish-on-quality into main 2026-05-03 16:07:17 +00:00
Owner

Problem
The deploy workflow starts on the same main-branch push as the quality workflow, so production deploy can begin before Format, Lint, and Build have all finished successfully.

Solution
Add a deploy-side wait gate that polls the Forgejo commit status API for the main-push quality contexts:

  • quality / Format (push)
  • quality / Lint (push)
  • quality / Build (push)

The deploy job is also restricted to refs/heads/main so manual dispatches do not deploy arbitrary branches.

Verification

  • Parsed all changed Forgejo workflow YAML with PyYAML.
  • Ran node --check on the embedded wait script.
  • Ran git diff --check.
Problem The deploy workflow starts on the same main-branch push as the quality workflow, so production deploy can begin before Format, Lint, and Build have all finished successfully. Solution Add a deploy-side wait gate that polls the Forgejo commit status API for the main-push quality contexts: - quality / Format (push) - quality / Lint (push) - quality / Build (push) The deploy job is also restricted to refs/heads/main so manual dispatches do not deploy arbitrary branches. Verification - Parsed all changed Forgejo workflow YAML with PyYAML. - Ran node --check on the embedded wait script. - Ran git diff --check.
fix(ci): gate deploy on quality checks
All checks were successful
quality / Format (pull_request) Successful in 9s
quality / Lint (pull_request) Successful in 16s
quality / Build (pull_request) Successful in 23s
d338230983
barrettruth deleted branch ci/gate-publish-on-quality 2026-05-03 16:07:17 +00:00
Sign in to join this conversation.
No description provided.