Skip to content

Commit 4ead26b

Browse files
committed
- Added a conditional check to the deployment job to ensure it only runs if the previous terraform plan was successful and not cancelled, improving workflow reliability.
1 parent c5b5dba commit 4ead26b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/deploy-backend.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ jobs:
206206
id-token: write
207207
contents: read
208208
needs: terraform-plan
209+
if: ${{ !cancelled() && needs.terraform-plan.result == 'success' }}
209210
runs-on: ubuntu-latest
210211
env:
211212
TF_VAR_recordprocessor_image_tag: ${{ needs.terraform-plan.outputs.recordprocessor_image_tag }}

0 commit comments

Comments
 (0)