|
1 | 1 | name: Terraform
|
2 | 2 | on: [push, pull_request]
|
3 |
| - |
| 3 | +env: |
| 4 | + TF_ACTIONS_VERSION: latest |
4 | 5 | jobs:
|
5 | 6 | check-format:
|
6 | 7 | name: Check format
|
|
12 | 13 | - name: 'Terraform Format'
|
13 | 14 | uses: hashicorp/terraform-github-actions@master
|
14 | 15 | with:
|
15 |
| - tf_actions_version: 0.12.15 |
| 16 | + tf_actions_version: ${{ env.TF_ACTIONS_VERSION }} |
16 | 17 | tf_actions_subcommand: 'fmt'
|
17 | 18 | tf_actions_working_dir: '.'
|
18 | 19 | tf_actions_comment: true
|
|
29 | 30 | - name: 'Terraform Init - examples/simple-nodejs'
|
30 | 31 | uses: hashicorp/terraform-github-actions@master
|
31 | 32 | with:
|
32 |
| - tf_actions_version: 0.12.15 |
| 33 | + tf_actions_version: ${{ env.TF_ACTIONS_VERSION }} |
33 | 34 | tf_actions_subcommand: 'init'
|
34 | 35 | tf_actions_working_dir: './examples/simple-nodejs'
|
35 | 36 | tf_actions_comment: true
|
|
39 | 40 | - name: 'Terraform Validate - examples/simple-nodejs'
|
40 | 41 | uses: hashicorp/terraform-github-actions@master
|
41 | 42 | with:
|
42 |
| - tf_actions_version: 0.12.15 |
| 43 | + tf_actions_version: ${{ env.TF_ACTIONS_VERSION }} |
43 | 44 | tf_actions_subcommand: 'validate'
|
44 | 45 | tf_actions_working_dir: './examples/simple-nodejs'
|
45 | 46 | tf_actions_comment: true
|
|
49 | 50 | - name: 'Terraform Init - examples/simple-py'
|
50 | 51 | uses: hashicorp/terraform-github-actions@master
|
51 | 52 | with:
|
52 |
| - tf_actions_version: 0.12.15 |
| 53 | + tf_actions_version: ${{ env.TF_ACTIONS_VERSION }} |
53 | 54 | tf_actions_subcommand: 'init'
|
54 | 55 | tf_actions_working_dir: './examples/simple-py'
|
55 | 56 | tf_actions_comment: true
|
|
59 | 60 | - name: 'Terraform Validate - examples/simple-py'
|
60 | 61 | uses: hashicorp/terraform-github-actions@master
|
61 | 62 | with:
|
62 |
| - tf_actions_version: 0.12.15 |
| 63 | + tf_actions_version: ${{ env.TF_ACTIONS_VERSION }} |
63 | 64 | tf_actions_subcommand: 'validate'
|
64 | 65 | tf_actions_working_dir: './examples/simple-py'
|
65 | 66 | tf_actions_comment: true
|
|
0 commit comments