Skip to content

Commit 59b8cbe

Browse files
authored
fix(ci): unblock release pipeline on push to main (#264)
- Add !cancelled() to docker-build job if-condition to prevent cascading skip when PR-only gate job is not applicable - Add explicit quality-checks result validation - Release pipeline was blocked since v6.50.0 (54c6358) Fixes #263
1 parent 955a3c1 commit 59b8cbe

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/ci-cd.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,12 @@ jobs:
256256
needs: [quality-checks, review-thread-gate]
257257
# For PRs, only run heavy jobs if the gate succeeded and explicitly allowed them.
258258
# Non-PR events (push/workflow_dispatch) run unconditionally.
259-
if: github.event_name != 'pull_request' || (needs.review-thread-gate.result == 'success' && needs.review-thread-gate.outputs.allow_heavy == 'true')
259+
# Note: !cancelled() is required because review-thread-gate is skipped on non-PR events,
260+
# and GitHub Actions skips dependent jobs by default when any needs job is skipped.
261+
if: |
262+
!cancelled() &&
263+
needs.quality-checks.result == 'success' &&
264+
(github.event_name != 'pull_request' || (needs.review-thread-gate.result == 'success' && needs.review-thread-gate.outputs.allow_heavy == 'true'))
260265
261266
permissions:
262267
contents: read

0 commit comments

Comments
 (0)