Skip to content

Commit

Permalink
chore(ci): Do not load cache if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Jan 27, 2025
1 parent 4fb43d0 commit 1848869
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,16 @@ jobs:
SHA=$( git ls-remote $TEST_DATA_REPO HEAD | cut -f 1 )
echo SHA=$SHA >> $GITHUB_OUTPUT
echo SHA7=${SHA:0:7} >> $GITHUB_OUTPUT
- uses: actions/cache@v4
name: Cache data-v1-${{ steps.test-head.outputs.SHA }}
- name: Check for data-v1-${{ steps.test-head.outputs.SHA }}
uses: actions/cache@v4
id: test-data
with:
path: /home/runner/nifreeze-tests/
key: data-v1-${{ steps.test-head.outputs.SHA }}
lookup-only: true
- name: Create data-v1-${{ steps.test-head.outputs.SHA }}
uses: actions/cache@v4
if: steps.test-data.outputs.cache-hit != 'true'
with:
path: /home/runner/nifreeze-tests/
key: data-v1-${{ steps.test-head.outputs.SHA }}
Expand Down

0 comments on commit 1848869

Please sign in to comment.