Skip to content

Commit 5b9f595

Browse files
committed
Fix for actions/cache on Alpine
1 parent 0ae51a3 commit 5b9f595

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/terraform.yml

+13
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ jobs:
4141
continue-on-error: true
4242
- name: validate terraform
4343
run: terraform validate
44+
- if: contains(matrix.terraform, '1.3.')
45+
name: Fix for actions/cache on alpine
46+
run: apk add --no-cache tar
47+
continue-on-error: true
4448
- if: contains(matrix.terraform, '1.3.')
4549
uses: actions/[email protected]
4650
name: Cache TFLint plugin dir
@@ -85,6 +89,10 @@ jobs:
8589
continue-on-error: true
8690
- name: validate terraform
8791
run: terraform validate
92+
- if: contains(matrix.terraform, '1.3.')
93+
name: Fix for actions/cache on alpine
94+
run: apk add --no-cache tar
95+
continue-on-error: true
8896
- if: contains(matrix.terraform, '1.3.')
8997
uses: actions/[email protected]
9098
name: Cache TFLint plugin dir
@@ -130,6 +138,10 @@ jobs:
130138
continue-on-error: true
131139
- name: validate terraform
132140
run: terraform validate
141+
- if: contains(matrix.terraform, '1.3.')
142+
name: Fix for actions/cache on alpine
143+
run: apk add --no-cache tar
144+
continue-on-error: true
133145
- if: contains(matrix.terraform, '1.3.')
134146
uses: actions/[email protected]
135147
name: Cache TFLint plugin dir
@@ -147,3 +159,4 @@ jobs:
147159
run: |
148160
tflint --init -c ${GITHUB_WORKSPACE}/.tflint.hcl --chdir modules/${{ matrix.module }}
149161
tflint -f compact -c ${GITHUB_WORKSPACE}/.tflint.hcl --var-file ${GITHUB_WORKSPACE}/.github/lint/tflint.tfvars --chdir examples/${{ matrix.example }}
162+

0 commit comments

Comments
 (0)