Skip to content

Commit 832fb00

Browse files
authored
Merge pull request #3 from analyticsMD/disable-caching
Disable-caching
2 parents 2291647 + 17b26e5 commit 832fb00

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ inputs:
5151
not supplied by the user. When running this action on github.com, the default value is sufficient. When running on
5252
GHES, you can pass a personal access token for github.com if you are experiencing rate limiting.
5353
default: ${{ github.server_url == 'https://github.com' && github.token || '' }}
54+
disable-caching:
55+
description: "Disable the cache actions in this workflow."
56+
required: false
57+
default: 'false'
5458
outputs:
5559
status:
5660
description: Apply Status. Either 'succeeded' or 'failed'
@@ -384,7 +388,7 @@ runs:
384388
- name: Cache .terraform
385389
id: cache
386390
uses: actions/cache@v4
387-
if: env.ACTIONS_ENABLED == 'true'
391+
if: env.ACTIONS_ENABLED == 'true' && inputs.disable-caching != 'true'
388392
with:
389393
path: |
390394
${{ steps.vars.outputs.component_path }}/.terraform

0 commit comments

Comments
 (0)