Skip to content

Commit 89948af

Browse files
committed
update: nocache
1 parent b772eee commit 89948af

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/production.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,17 @@ jobs:
8080
key: ${{ runner.os }}-gatsby-cache-docs-staging-${{ steps.calc-cache-key.outputs.key }}
8181
restore-keys: |
8282
${{ runner.os }}-gatsby-cache-docs-staging-
83-
lookup-only: ${{ inputs.nocache }}
8483
8584
- name: Clean up temporary files
8685
run: |
8786
sudo rm -rf /tmp/*
8887
sudo rm -rf /home/runner/work/_temp/*
8988
89+
- name: Clean cache
90+
if: ${{ inputs.nocache }}
91+
run: |
92+
yarn clean
93+
9094
- name: Build website
9195
if: ${{ !inputs.fallback || (steps.gatsby-cache.outputs.cache-hit != 'true') }}
9296
env:

0 commit comments

Comments
 (0)