We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea8bcf0 commit 9065f94Copy full SHA for 9065f94
.github/workflows/DeployEverything.yml
@@ -43,8 +43,12 @@ jobs:
43
terraform plan --var-file ../tfvars/${{ inputs.env }}.tfvars -detailed-exitcode
44
45
# Tests whether there are any changes to make, see: https://developer.hashicorp.com/terraform/cli/commands/plan#detailed-exitcode
46
+ echo 'Exit Code: $?'
47
+ echo $?
48
+
49
exitCode=$?
50
if [ $exitCode -eq 2 ]; then
51
+ echo 'Change detected, applying'
52
terraform apply -auto-approve --var-file ../tfvars/${{ inputs.env }}.tfvars
53
fi
54
env:
0 commit comments