Skip to content

Commit fcba9b8

Browse files
committed
Separate tf and opentf
1 parent 0c61115 commit fcba9b8

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

action.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -178,31 +178,33 @@ runs:
178178
179179
- name: Install dependencies (Terraform)
180180
uses: aquaproj/aqua-installer@5e54e5cee8a95ee2ce7c04cb993da6dfad13e59c # v3.1.2
181+
if: ${{ fromJson(steps.atmos-settings.outputs.settings).terraform-version != '' && fromJson(steps.atmos-settings.outputs.settings).terraform-version != 'null' }}
181182
with:
182183
aqua_version: v2.50.0
183-
aqua_opts: "hashicorp/terraform@1.5.2"
184+
aqua_opts: "aquaproj/registry-standard/hashicorp/terraform@${{ startsWith(fromJson(steps.atmos-settings.outputs.settings).terraform-version, 'v') && fromJson(steps.atmos-settings.outputs.settings).terraform-version || format('v{0}', fromJson(steps.atmos-settings.outputs.settings).terraform-version) }}"
184185
env:
185-
AQUA_CONFIG: aqua.yaml
186+
#AQUA_CONFIG: aqua.yaml
186187
AQUA_LOG_LEVEL: debug
187188

188189
- name: Install dependencies (OpenTofu)
189190
uses: aquaproj/aqua-installer@5e54e5cee8a95ee2ce7c04cb993da6dfad13e59c # v3.1.2
191+
if: ${{ fromJson(steps.atmos-settings.outputs.settings).opentofu-version != '' && fromJson(steps.atmos-settings.outputs.settings).opentofu-version != 'null' }}
190192
with:
191193
aqua_version: v2.50.0
192-
aqua_opts: "opentofu/opentofu@v1.9.1"
194+
aqua_opts: "aquaproj/registry-standard/opentofu/opentofu@${{ startsWith(fromJson(steps.atmos-settings.outputs.settings).opentofu-version, 'v') && fromJson(steps.atmos-settings.outputs.settings).opentofu-version || format('v{0}', fromJson(steps.atmos-settings.outputs.settings).opentofu-version) }}"
193195
env:
194-
AQUA_CONFIG: aqua.yaml
196+
#AQUA_CONFIG: aqua.yaml
195197
AQUA_LOG_LEVEL: debug
196198

197-
#- name: Install Dependencies
198-
# uses: cloudposse-github-actions/install-gh-releases@v1
199-
# with:
200-
# cache: true
201-
# config: |-
202-
# opentofu/opentofu:
203-
# tag: ${{ startsWith(fromJson(steps.atmos-settings.outputs.settings).opentofu-version, 'v') && fromJson(steps.atmos-settings.outputs.settings).opentofu-version || format('v{0}', fromJson(steps.atmos-settings.outputs.settings).opentofu-version) }}
204-
# skip: ${{ fromJson(steps.atmos-settings.outputs.settings).opentofu-version == '' || fromJson(steps.atmos-settings.outputs.settings).opentofu-version == 'null' }}
205-
# suzuki-shunsuke/tfcmt: v4.14.0
199+
- name: Install shared dependencies
200+
uses: aquaproj/aqua-installer@5e54e5cee8a95ee2ce7c04cb993da6dfad13e59c # v3.1.2
201+
if: ${{ fromJson(steps.atmos-settings.outputs.settings).opentofu-version != '' && fromJson(steps.atmos-settings.outputs.settings).opentofu-version != 'null' }}
202+
with:
203+
aqua_version: v2.50.0
204+
skip_install_aqua: true
205+
env:
206+
AQUA_CONFIG: aqua.yaml
207+
AQUA_LOG_LEVEL: debug
206208

207209
- name: Configure Plan AWS Credentials
208210
uses: aws-actions/configure-aws-credentials@v4

0 commit comments

Comments
 (0)