Skip to content

Commit 0c44cea

Browse files
author
nozaq
authored
Merge pull request nozaq#6 from nozaq/use-latest
chore: use the latest version of Terraform in CI workflows
2 parents b875da8 + 36f7964 commit 0c44cea

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Terraform
22
on: [push, pull_request]
3-
3+
env:
4+
TF_ACTIONS_VERSION: latest
45
jobs:
56
check-format:
67
name: Check format
@@ -12,7 +13,7 @@ jobs:
1213
- name: 'Terraform Format'
1314
uses: hashicorp/terraform-github-actions@master
1415
with:
15-
tf_actions_version: 0.12.15
16+
tf_actions_version: ${{ env.TF_ACTIONS_VERSION }}
1617
tf_actions_subcommand: 'fmt'
1718
tf_actions_working_dir: '.'
1819
tf_actions_comment: true
@@ -29,7 +30,7 @@ jobs:
2930
- name: 'Terraform Init - examples/simple-nodejs'
3031
uses: hashicorp/terraform-github-actions@master
3132
with:
32-
tf_actions_version: 0.12.15
33+
tf_actions_version: ${{ env.TF_ACTIONS_VERSION }}
3334
tf_actions_subcommand: 'init'
3435
tf_actions_working_dir: './examples/simple-nodejs'
3536
tf_actions_comment: true
@@ -39,7 +40,7 @@ jobs:
3940
- name: 'Terraform Validate - examples/simple-nodejs'
4041
uses: hashicorp/terraform-github-actions@master
4142
with:
42-
tf_actions_version: 0.12.15
43+
tf_actions_version: ${{ env.TF_ACTIONS_VERSION }}
4344
tf_actions_subcommand: 'validate'
4445
tf_actions_working_dir: './examples/simple-nodejs'
4546
tf_actions_comment: true
@@ -49,7 +50,7 @@ jobs:
4950
- name: 'Terraform Init - examples/simple-py'
5051
uses: hashicorp/terraform-github-actions@master
5152
with:
52-
tf_actions_version: 0.12.15
53+
tf_actions_version: ${{ env.TF_ACTIONS_VERSION }}
5354
tf_actions_subcommand: 'init'
5455
tf_actions_working_dir: './examples/simple-py'
5556
tf_actions_comment: true
@@ -59,7 +60,7 @@ jobs:
5960
- name: 'Terraform Validate - examples/simple-py'
6061
uses: hashicorp/terraform-github-actions@master
6162
with:
62-
tf_actions_version: 0.12.15
63+
tf_actions_version: ${{ env.TF_ACTIONS_VERSION }}
6364
tf_actions_subcommand: 'validate'
6465
tf_actions_working_dir: './examples/simple-py'
6566
tf_actions_comment: true

0 commit comments

Comments
 (0)