File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -145,20 +145,21 @@ jobs:
145145 run : |
146146 set -euo pipefail
147147
148+ should_deploy=false
149+
148150 if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
149- echo "Manual dispatch requested; deploying."
150- echo "should_deploy= true" >> "$GITHUB_OUTPUT"
151- exit 0
151+ should_deploy=true
152+ elif [ "${{ needs.detect-changes.outputs.deployable }}" = " true" ]; then
153+ should_deploy=true
152154 fi
153155
154- if [ "${{ needs.detect-changes.outputs.deployable }} " = "true" ]; then
155- echo "Deployable files changed since last successful deploy ; deploying."
156- echo "should_deploy=true" >> "$GITHUB_OUTPUT"
157- exit 0
156+ if [ "$should_deploy " = "true" ]; then
157+ echo "Deploy requested ; deploying."
158+ else
159+ echo "No deployable files changed since last successful deploy; skipping."
158160 fi
159161
160- echo "No deployable files changed since last successful deploy; skipping."
161- echo "should_deploy=false" >> "$GITHUB_OUTPUT"
162+ echo "should_deploy=$should_deploy" >> "$GITHUB_OUTPUT"
162163
163164 # Quality gate: four parallel jobs replacing the former sequential quality-gate.
164165 # Only the test job needs a real Postgres; the others use a dummy DATABASE_URL
You can’t perform that action at this time.
0 commit comments