Skip to content

Commit be118e3

Browse files
authored
Merge pull request #6 from recognizegroup/feature/configurable-working-dir
Make working-directory configurable AB#18519
2 parents 8ec14f9 + e65133f commit be118e3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/actions/terragrunt_apply/action.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ inputs:
77
terragrunt_download_directory:
88
required: true
99
description: "Terragrunt download directory"
10-
10+
working_directory:
11+
required: false
12+
default: .
13+
description: "Location where to execute terragrunt apply command"
1114

1215
runs:
1316
using: composite
@@ -16,11 +19,13 @@ runs:
1619
run: |
1720
rm -r ${{ inputs.terragrunt_download_directory }}/* --force
1821
mkdir --parents ${{ inputs.terragrunt_download_directory }}
22+
working-directory: ${{ inputs.working_directory }}
1923
shell: bash
2024
- name: Terragrunt Apply
2125
run: |
2226
terragrunt run-all apply \
2327
--terragrunt-non-interactive
28+
working-directory: ${{ inputs.working_directory }}
2429
shell: bash
2530
- name: Notify about failures
2631
if: ${{ failure() }}

0 commit comments

Comments
 (0)