We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 421d8ea commit 182722eCopy full SHA for 182722e
.github/workflows/provision-by-terraform.yml
@@ -28,6 +28,11 @@ jobs:
28
# Whether to configure the token or SSH key with the local git config. Default: true
29
persist-credentials: false
30
31
+ - name: Checkout terraform data to a subdirectory
32
+ run: |
33
+ git fetch --depth=1 origin generated-terraform
34
+ git worktree add terraform-data generated-terraform
35
+
36
# https://github.com/tfutils/tfenv#manual
37
- name: Install tfenv
38
uses: actions/[email protected]
@@ -63,3 +68,8 @@ jobs:
63
68
- name: Run terraform plan
64
69
working-directory: infra/terraform
65
70
run: terraform plan -detailed-exitcode
71
72
+ - name: Cleanup
73
+ if: always()
74
75
+ [ ! -d terraform-data ] || git worktree remove terraform-data
0 commit comments