Skip to content

Commit 633dcab

Browse files
committed
fix(ci): stop the publish job from being skipped
A skipped upstream job (verify on non-tag refs) makes every dependent job skip by default, so nothing was ever merged or pushed. Add always() plus an explicit build-result check.
1 parent a0fe43d commit 633dcab

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎.github/workflows/docker-image.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ jobs:
130130
merge:
131131
name: publish
132132
needs: build
133-
if: github.event_name != 'pull_request'
133+
# `always()` is required: the skipped `verify` job upstream otherwise skips
134+
# this job too, and nothing would ever be published.
135+
if: always() && github.event_name != 'pull_request' && needs.build.result == 'success'
134136
runs-on: ubuntu-latest
135137
steps:
136138
- name: Compute image name

0 commit comments

Comments
 (0)