Skip to content

Commit 4045ddc

Browse files
[NDR-56] Add continue-on-error flag to Terraform format, validate, and plan steps for improved workflow resilience
1 parent 69bff4f commit 4045ddc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/terraform-dev-to-main-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,12 @@ jobs:
6262
id: fmt
6363
run: terraform fmt -check
6464
working-directory: ./infrastructure
65+
continue-on-error: true
6566

6667
- name: terraform validate
6768
id: validate
6869
run: terraform validate -no-color
70+
continue-on-error: true
6971

7072
- name: Terraform Plan
7173
id: plan
@@ -75,6 +77,7 @@ jobs:
7577
echo "summary=$(grep -E 'Plan: [0-9]+ to add, [0-9]+ to change, [0-9]+ to destroy\.|No changes\. Your infrastructure matches the configuration\.' tfplan.txt | sed 's/.*No changes\. Your infrastructure matches the configuration/Plan: no changes/g' | sed 's/.*Plan: //g' | sed 's/\..*//g')" >> $GITHUB_OUTPUT
7678
working-directory: ./infrastructure
7779
shell: bash
80+
continue-on-error: true
7881

7982
- name: Truncate Plan Output
8083
id: plan-truncated

0 commit comments

Comments
 (0)