Skip to content

Commit

Permalink
make inputs custom
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmellos committed Apr 17, 2024
1 parent 1801ff5 commit 2ca8443
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/iac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ on:
WORKING_DIR:
required: true
type: string
tg_version:
TG_VERSION:
required: false
type: string
default: '0.53.2'
TF_VERSION:
required: false
type: string
default: '1.5.7'
AWS_REGION:
required: true
type: string
Expand Down Expand Up @@ -170,8 +174,8 @@ jobs:
id: init
uses: lucasmellos/terragrunt-action@main
with:
tf_version: 1.5.7
tg_version: 0.54.12
tf_version: ${{ inputs.TF_VERSION }}
tg_version: ${{ inputs.TG_VERSION }}
tg_dir: ${{ inputs.WORKING_DIR }}
tg_command: 'run-all init'
env:
Expand All @@ -186,8 +190,8 @@ jobs:
uses: lucasmellos/terragrunt-action@main
id: validate
with:
tf_version: 1.5.7
tg_version: 0.53.2
tf_version: ${{ inputs.TF_VERSION }}
tg_version: ${{ inputs.TG_VERSION }}
tg_dir: ${{ inputs.WORKING_DIR }}
tg_command: 'run-all validate'
env:
Expand All @@ -197,8 +201,8 @@ jobs:
uses: lucasmellos/terragrunt-action@main
id: plan
with:
tf_version: 1.5.7
tg_version: 0.53.2
tf_version: ${{ inputs.TF_VERSION }}
tg_version: ${{ inputs.TG_VERSION }}
tg_dir: ${{ inputs.WORKING_DIR }}
tg_command: 'run-all plan'
tg_comment: 1
Expand Down Expand Up @@ -247,8 +251,8 @@ jobs:
uses: lucasmellos/terragrunt-action@main
id: apply
with:
tf_version: 1.5.7
tg_version: 0.53.2
tf_version: ${{ inputs.TF_VERSION }}
tg_version: ${{ inputs.TG_VERSION }}
tg_dir: ${{ inputs.WORKING_DIR }}
tg_command: 'run-all apply'
env:
Expand Down

0 comments on commit 2ca8443

Please sign in to comment.