Skip to content

Commit

Permalink
Be explicit about saving/restoring
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Jul 25, 2024
1 parent 37073d8 commit b191910
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ runs:
echo "REQS_HASH=$(sha256sum ${{ github.action_path }}/requirements/tools.txt | cut -d' ' -f1)" >>$GITHUB_ENV
shell: bash

- name: Cache uv
uses: actions/cache@v4
- name: Restore uv cache
uses: actions/cache/restore@v4
with:
path: ${{ env.UV_CACHE }}
key: baipp-${{ env.REQS_HASH }}
Expand Down Expand Up @@ -118,6 +118,12 @@ runs:
run: uv cache prune --ci
shell: bash

- name: Save uv cache
uses: actions/cache/save@v4
with:
path: ${{ env.UV_CACHE }}
key: baipp-${{ env.REQS_HASH }}

- name: Attest GitHub build provenance
if: ${{ inputs.attest-build-provenance-github == 'true' }}
uses: actions/attest-build-provenance@v1
Expand Down

0 comments on commit b191910

Please sign in to comment.