Skip to content

Commit 3730318

Browse files
committed
fix: add always() to build-image so it runs when check-freeze is skipped
When check-freeze is skipped (workflow_dispatch), GitHub Actions skips all dependent jobs by default. Adding always() lets the if condition evaluate regardless of the dependency's conclusion.
1 parent 6596967 commit 3730318

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/continuous-delivery.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ jobs:
4040
build-image:
4141
needs: [check-freeze]
4242
if: |
43-
(github.event_name == 'push' && needs.check-freeze.outputs.frozen == 'false') ||
44-
(github.event_name == 'workflow_dispatch' && (github.event.inputs.action == 'deploy-staging' || github.event.inputs.action == 'deploy-staging-skip-freeze'))
43+
always() &&
44+
((github.event_name == 'push' && needs.check-freeze.outputs.frozen == 'false') ||
45+
(github.event_name == 'workflow_dispatch' && (github.event.inputs.action == 'deploy-staging' || github.event.inputs.action == 'deploy-staging-skip-freeze')))
4546
runs-on: depot-ubuntu-24.04
4647
concurrency:
4748
group: deploy-staging

0 commit comments

Comments
 (0)