You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [[ $(terraform show .tf-plan | grep -ic "no changes.") -gt 0 ]]; then echo TF_PLAN_EXIT_CODE=0 >> $ENV0_ENV; else echo TF_PLAN_EXIT_CODE=2 >> $ENV0_ENV; fi
4
9
terraformApply:
5
10
before:
6
-
- name: "VMW Skip Test: Before Apply"
11
+
- name: "Skip Test: Before Apply"
7
12
run: |
8
-
echo "I'm running before the apply"
13
+
echo "TF_PLAN_EXIT_CODE value is $TF_PLAN_EXIT_CODE"
14
+
if [ "$TF_PLAN_EXIT_CODE" == "0" ]; then echo "No changes, not running pre-apply flow" ; else echo "I'm running before the apply"; fi
9
15
after:
10
-
- name: "VMW Skip Test: After Apply"
16
+
- name: "Skip Test: After Apply"
11
17
run: |
12
-
echo "I'm running after the apply"
18
+
echo "TF_PLAN_EXIT_CODE value is $TF_PLAN_EXIT_CODE"
19
+
if [ "$TF_PLAN_EXIT_CODE" == "0" ]; then echo "No changes, not running post-apply flow" ; else echo "I'm running after the apply"; fi
0 commit comments