Template
ci: prevent dependent jobs from hanging when their gate is skipped #44
Reference in New Issue
Block a user
Delete Branch "fix/dependent-jobs-no-hang"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Mirror of Template-Generic#49. After guarding
lint/validateto skip on this template repo, theirneeds:-dependent jobs (Tests,Build RC Package) hung in "waiting" (Gitea act_runner leaves a job whose skipped dependency never resolves), so the run never completed.Fix
ci-generic.ymltest:if: ${{ always() && needs.lint.result == 'success' }}pr-check.ymlpre-release:if: ${{ always() && needs.branch-policy.result == 'success' && needs.validate.result == 'success' }}This makes the dependent jobs skip cleanly on this template while behaving normally on generated/real repos. Completes the CI cleanup (#41, #42).
Authored-by: Moko Consulting