Skip to content

Commit e4b804b

Browse files
committed
task: install tfenv to unbreak the workflow
Part of #1631 [skip ci]
1 parent 82300b8 commit e4b804b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/provision-by-terraform.yml

+15
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,21 @@ jobs:
2828
# Whether to configure the token or SSH key with the local git config. Default: true
2929
persist-credentials: false
3030

31+
# https://github.com/tfutils/tfenv#manual
32+
- name: Install tfenv
33+
uses: actions/[email protected]
34+
with:
35+
# https://github.com/actions/checkout#checkout-multiple-repos-nested
36+
repository: tfutils/tfenv
37+
path: tfenv
38+
ref: v3.0.0
39+
# Whether to configure the token or SSH key with the local git config. Default: true
40+
persist-credentials: false
41+
42+
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-system-path
43+
- name: Add tfenv directory to PATH
44+
run: echo "$GITHUB_WORKSPACE/tfenv/bin" >> $GITHUB_PATH
45+
3146
- name: Install terraform
3247
working-directory: infra/terraform
3348
run: tfenv install

0 commit comments

Comments
 (0)