File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed
tests/workflows/test-cloud/partial Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -503,7 +503,7 @@ jobs:
503
503
504
504
- name : Check the version
505
505
run : |
506
- if [[ "${{ steps.terraform-version.outputs.terraform }}" != *"1.6 "* ]]; then
506
+ if [[ "${{ steps.terraform-version.outputs.terraform }}" != *"1.7 "* ]]; then
507
507
echo "::error:: Latest version was not used"
508
508
exit 1
509
509
fi
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ function apply() {
32
32
if [[ -n " $PLAN_OUT " ]]; then
33
33
34
34
if [[ " $TERRAFORM_BACKEND_TYPE " == " cloud" ]]; then
35
- # Using the auto approve flag when applying a saved remote plan makes terraform hang
35
+ # Using the auto approve flag when applying a saved cloud plan makes terraform hang
36
36
# It does not prompt for approval anyway
37
37
AUTO_APPROVE=" "
38
38
fi
@@ -59,6 +59,10 @@ function apply() {
59
59
APPLY_EXIT=${PIPESTATUS[0]}
60
60
>&2 cat " $STEP_TMP_DIR /terraform_apply.stderr"
61
61
62
+ fi
63
+ set -e
64
+
65
+ if [[ " $TERRAFORM_BACKEND_TYPE " == " cloud" || " $TERRAFORM_BACKEND_TYPE " == " remote" ]]; then
62
66
if remote-run-id " $STEP_TMP_DIR /terraform_apply.stdout" > " $STEP_TMP_DIR /remote-run-id.stdout" 2> " $STEP_TMP_DIR /remote-run-id.stderr" ; then
63
67
RUN_ID=" $( < " $STEP_TMP_DIR /remote-run-id.stdout" ) "
64
68
set_output run_id " $RUN_ID "
@@ -67,7 +71,6 @@ function apply() {
67
71
debug_file " $STEP_TMP_DIR /remote-run-id.stderr"
68
72
fi
69
73
fi
70
- set -e
71
74
72
75
if [[ $APPLY_EXIT -eq 0 ]]; then
73
76
output
Original file line number Diff line number Diff line change 1
1
terraform {
2
2
cloud {
3
+ organization = " flooktech"
4
+
5
+ workspaces {
6
+ name = " tf-cloud-1-6-cloud-1"
7
+ }
3
8
}
4
9
required_version = " ~> 1.6.0"
5
10
}
You can’t perform that action at this time.
0 commit comments