Skip to content

Commit

Permalink
Refactor Terraform plan command in tf-drift-detection.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlahbib committed Nov 20, 2024
1 parent 4c7d85d commit a305ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/tf-drift-detection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
TF_VAR_CROWDSEC_ENROLL_KEY: ${{ inputs.CROWDSEC_ENROLL_KEY }}
run: |
export exitcode=0
terraform plan -detailed-exitcode -no-color -out tfplan || exitcode=$?
terraform plan -var-file ./stages/prod.tfvars -detailed-exitcode -no-color -out tfplan || exitcode=$?
echo "exitcode=$exitcode" >> $GITHUB_ENV
if [ $exitcode -eq 1 ]; then
echo Terraform Plan Failed!
Expand Down

0 comments on commit a305ceb

Please sign in to comment.