Skip to content

Commit b8f566d

Browse files
authored
Merge pull request #1415 from diggerhq/fix-terragrunt-cache-var-conditional
Make the terragrunt conditional work
2 parents 76a1d4b + ebc4912 commit b8f566d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ runs:
309309
NO_BACKEND: ${{ inputs.no-backend }}
310310
DEBUG: 'true'
311311
TF_PLUGIN_CACHE_DIR: ${{ github.workspace }}/cache
312-
TERRAGRUNT_PROVIDER_CACHE: "0"
312+
TERRAGRUNT_PROVIDER_CACHE: ${{ inputs.cache-dependencies == 'true' && 1 || 0 }}
313313
TERRAGRUNT_PROVIDER_CACHE_DIR: ${{ github.workspace }}/cache
314314
run: |
315315
cd $GITHUB_ACTION_PATH/cli
@@ -339,7 +339,7 @@ runs:
339339
INPUT_DRIFT_DETECTION_SLACK_NOTIFICATION_URL: ${{ inputs.drift-detection-slack-notification-url }}
340340
NO_BACKEND: ${{ inputs.no-backend }}
341341
TF_PLUGIN_CACHE_DIR: ${{ github.workspace }}/cache
342-
TERRAGRUNT_PROVIDER_CACHE: "0"
342+
TERRAGRUNT_PROVIDER_CACHE: ${{ inputs.cache-dependencies == 'true' && 1 || 0 }}
343343
TERRAGRUNT_PROVIDER_CACHE_DIR: ${{ github.workspace }}/cache
344344
id: digger
345345
shell: bash

0 commit comments

Comments
 (0)