Skip to content

Commit 2ddf0bd

Browse files
committed
Merge branch 'main' of github.com:analyticsMD/github-action-atmos-terraform-apply
2 parents 7b473d0 + 4140987 commit 2ddf0bd

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

action.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ inputs:
4545
description: "Enable installed dependency caching. Default: 'true'"
4646
default: 'true'
4747
required: false
48+
install-dependencies:
49+
description: "Whether to install dependencies with Aqua. If false, it is assumed that the runner already has the necessary dependencies installed. Default: 'true'"
50+
required: false
51+
default: 'true'
4852
token:
4953
description:
5054
Used to pull node distributions for Atmos from Cloud Posse's GitHub repository. Since there's a default, this is typically
@@ -81,6 +85,7 @@ runs:
8185
8286
- name: Install Atmos
8387
uses: cloudposse/github-action-setup-atmos@v2
88+
if: ${{ inputs.install-dependencies == 'true' }}
8489
with:
8590
atmos-version: ${{ inputs.atmos-version }}
8691
token: ${{ inputs.token }}
@@ -199,13 +204,14 @@ runs:
199204
unset COMPONENT_CONFIG
200205
201206
- name: Install Terraform
202-
if: ${{ fromJson(steps.atmos-settings.outputs.settings).terraform-version != '' && fromJson(steps.atmos-settings.outputs.settings).terraform-version != 'null' }}
207+
if: ${{ inputs.install-dependencies == 'true' && fromJson(steps.atmos-settings.outputs.settings).terraform-version != '' && fromJson(steps.atmos-settings.outputs.settings).terraform-version != 'null' }}
203208
uses: hashicorp/setup-terraform@v3
204209
with:
205210
terraform_version: ${{ fromJson(steps.atmos-settings.outputs.settings).terraform-version }}
206211
terraform_wrapper: false
207212

208213
- name: Install Dependencies
214+
if: ${{ inputs.install-dependencies == 'true' }}
209215
uses: cloudposse-github-actions/install-gh-releases@v1
210216
with:
211217
cache: ${{ inputs.cache-dependencies }}
@@ -352,7 +358,7 @@ runs:
352358
fi
353359
354360
- name: Setup Infracost
355-
if: env.INFRACOST_ENABLED == 'true'
361+
if: ${{ inputs.install-dependencies == 'true' && env.INFRACOST_ENABLED == 'true' }}
356362
uses: infracost/actions/setup@v3
357363
with:
358364
api-key: ${{ inputs.infracost-api-key }}

0 commit comments

Comments
 (0)