Skip to content

Commit

Permalink
Add uv cache busting
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Apr 11, 2024
1 parent fb2942d commit eac5336
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,17 @@ runs:
shell: bash

- name: Find uv cache
run: echo "UV_CACHE=$(uv cache dir)" >>$GITHUB_ENV
run: |
echo "UV_CACHE=$(uv cache dir)" >>$GITHUB_ENV
DEPS="${{ github.action_path }}/requirements/tools.txt"
echo "REQS_HASH=$(sha256sum $DEPS | cut -d' ' -f1)" >>$GITHUB_ENV
shell: bash

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

- name: Create venv for tools
run: >
Expand Down

0 comments on commit eac5336

Please sign in to comment.