ci: prevent dependent jobs from hanging when their gate is skipped #44

Merged
jmiller merged 1 commits from fix/dependent-jobs-no-hang into main 2026-07-04 19:40:27 +00:00

1 Commits

Author SHA1 Message Date
jmiller 393677927f ci: prevent dependent jobs from hanging when their gate is skipped
Universal: Pre-Release / Build Pre-Release (${{ inputs.stability || github.ref_name }}) (push) Has been skipped
Generic: Project CI / Lint & Validate (pull_request) Has been skipped
Universal: PR Check / Validate PR (pull_request) Has been skipped
Joomla: Metadata Validation / Validate Joomla Metadata (pull_request) Has been skipped
Generic: Repo Health / Site Health (pull_request) Has been skipped
Universal: PR Check / Branch Policy (pull_request) Failing after 1s
Generic: Repo Health / Access control (pull_request) Successful in 2s
Universal: PR Check / Secret Scan (pull_request) Successful in 5s
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
Branch Cleanup / Delete merged branch (pull_request) Successful in 1s
Universal: Workflow Sync Trigger / Sync workflows to live repos (pull_request) Successful in 23s
Generic: Project CI / Tests (pull_request) Has been cancelled
Universal: PR Check / Build RC Package (pull_request) Has been cancelled
Universal: PR Check / Report Issues (pull_request) Has been cancelled
Generic: Repo Health / Scripts governance (pull_request) Has been cancelled
Generic: Repo Health / Repository health (pull_request) Has been cancelled
Generic: Repo Health / Report: Scripts Governance (pull_request) Has been cancelled
Generic: Repo Health / Report: Repository Health (pull_request) Has been cancelled
Mirror of Template-Generic fix: key dependent jobs off their gate's
result with always() so a skipped lint/validate (template repos) skips
them cleanly instead of leaving them "waiting" (Gitea act quirk).

- ci-generic.yml `test`: if always() && needs.lint.result == 'success'
- pr-check.yml `pre-release`: if always() && needs.branch-policy.result
  == 'success' && needs.validate.result == 'success'

Authored-by: Moko Consulting
2026-07-04 14:39:51 -05:00