File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -309,6 +309,8 @@ runs:
309
309
NO_BACKEND : ${{ inputs.no-backend }}
310
310
DEBUG : ' true'
311
311
TF_PLUGIN_CACHE_DIR : ${{ github.workspace }}/cache
312
+ TERRAGRUNT_PROVIDER_CACHE : ${{ inputs.cache-dependencies == 'true' && "1" || "0" }}
313
+ TERRAGRUNT_PROVIDER_CACHE_DIR : ${{ github.workspace }}/cache
312
314
run : |
313
315
cd $GITHUB_ACTION_PATH/cli
314
316
go build -o digger ./cmd/digger
@@ -336,6 +338,9 @@ runs:
336
338
INPUT_DIGGER_COMMAND : ${{ inputs.command }}
337
339
INPUT_DRIFT_DETECTION_SLACK_NOTIFICATION_URL : ${{ inputs.drift-detection-slack-notification-url }}
338
340
NO_BACKEND : ${{ inputs.no-backend }}
341
+ TF_PLUGIN_CACHE_DIR : ${{ github.workspace }}/cache
342
+ TERRAGRUNT_PROVIDER_CACHE : ${{ inputs.cache-dependencies == 'true' && "1" || "0" }}
343
+ TERRAGRUNT_PROVIDER_CACHE_DIR : ${{ github.workspace }}/cache
339
344
id : digger
340
345
shell : bash
341
346
run : |
@@ -347,10 +352,12 @@ runs:
347
352
348
353
- uses : actions/cache/save@v4
349
354
name : cache-save
355
+ if : ${{ inputs.cache-dependencies == 'true' }}
350
356
with :
351
357
path : ${{ github.workspace }}/cache
352
358
key : digger-cache-${{ hashFiles('**/cache') }}
353
- if : ${{ inputs.cache-dependencies == 'true' }}
359
+ restore-keys : |
360
+ digger-cache-
354
361
355
362
branding :
356
363
icon : globe
You can’t perform that action at this time.
0 commit comments