Skip to content

Commit

Permalink
ci(terraform): continue-on-error for job summary
Browse files Browse the repository at this point in the history
  • Loading branch information
seantrane committed May 4, 2023
1 parent 880cc98 commit ed45370
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ jobs:
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.fmt.outputs.stderr }}" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
continue-on-error: true

- name: Terraform Init
id: init
Expand All @@ -136,6 +137,7 @@ jobs:
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.init.outputs.stderr }}" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
continue-on-error: true

- name: Terraform Validate
id: validate
Expand All @@ -154,6 +156,7 @@ jobs:
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "</details>" >> $GITHUB_STEP_SUMMARY
continue-on-error: true

- name: Terraform Validation Failure Summary
if: steps.validate.outcome == 'failure'
Expand All @@ -162,6 +165,7 @@ jobs:
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.validate.outputs.stderr }}" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
continue-on-error: true

- name: Terraform Plan
id: plan
Expand All @@ -181,6 +185,7 @@ jobs:
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "</details>" >> $GITHUB_STEP_SUMMARY
continue-on-error: true

- name: Terraform Plan Failure Summary
if: steps.plan.outcome == 'failure'
Expand All @@ -189,6 +194,7 @@ jobs:
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "${{ steps.plan.outputs.stderr }}" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
continue-on-error: true

- name: Update Pull Request
uses: actions/github-script@v6
Expand Down Expand Up @@ -280,6 +286,7 @@ jobs:
body: output
})
}
continue-on-error: true

- name: Terraform Plan Status
if: steps.plan.outcome == 'failure' || steps.validate.outcome == 'failure' || steps.init.outcome == 'failure' || steps.fmt.outcome == 'failure'
Expand Down

0 comments on commit ed45370

Please sign in to comment.