@@ -981,48 +981,6 @@ jobs:
981981 exit 1
982982 fi
983983
984- deprecated_var_ephemeral :
985- runs-on : ubuntu-24.04
986- name : Nice error message for ephemeral var
987- permissions :
988- contents : read
989- pull-requests : write
990- env :
991- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
992- TERRAFORM_VERSION : " >=1.10.0"
993- steps :
994- - name : Checkout
995- uses : actions/checkout@v4
996- with :
997- persist-credentials : false
998-
999- - name : Plan
1000- uses : ./terraform-plan
1001- with :
1002- label : test-apply deprecated_var_terraform_1_10
1003- path : tests/workflows/test-apply/deprecated_var
1004- var : my_var=hello
1005- var_file : tests/workflows/test-apply/test.tfvars
1006-
1007- - name : Apply
1008- uses : ./terraform-apply
1009- id : apply
1010- continue-on-error : true
1011- with :
1012- label : test-apply deprecated_var_terraform_1_10
1013- path : tests/workflows/test-apply/deprecated_var
1014- var : my_var=hello
1015- var_file : tests/workflows/test-apply/test.tfvars
1016-
1017- - name : Check failed to apply
1018- env :
1019- OUTCOME : ${{ steps.apply.outcome }}
1020- run : |
1021- if [[ "$OUTCOME" != "failure" ]]; then
1022- echo "Apply did not fail correctly"
1023- exit 1
1024- fi
1025-
1026984 apply_refresh :
1027985 runs-on : ubuntu-24.04
1028986 name : Apply changes are refresh
@@ -1570,3 +1528,41 @@ jobs:
15701528 echo "Apply did not fail correctly"
15711529 exit 1
15721530 fi
1531+
1532+ deprecated_var_ephemeral :
1533+ runs-on : ubuntu-24.04
1534+ name : Nice error message for ephemeral var
1535+ permissions :
1536+ contents : read
1537+ pull-requests : write
1538+ env :
1539+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1540+ steps :
1541+ - name : Checkout
1542+ uses : actions/checkout@v4
1543+ with :
1544+ persist-credentials : false
1545+
1546+ - name : Plan using explicit ephemeral value
1547+ uses : ./terraform-plan
1548+ with :
1549+ label : test-apply deprecated_var_ephemeral
1550+ path : tests/workflows/test-apply/ephemeral
1551+ var : region=eu-west-1
1552+
1553+ - name : Apply using explicit ephemeral value
1554+ uses : ./terraform-apply
1555+ id : apply
1556+ with :
1557+ label : test-apply deprecated_var_ephemeral
1558+ path : tests/workflows/test-apply/ephemeral
1559+ var : region=eu-west-1
1560+
1561+ - name : Check failed to apply
1562+ env :
1563+ OUTCOME : ${{ steps.apply.outcome }}
1564+ run : |
1565+ if [[ "$OUTCOME" != "failure" ]]; then
1566+ echo "Apply did not fail correctly"
1567+ exit 1
1568+ fi
0 commit comments