init
This commit is contained in:
commit
9f172ed7df
1 changed files with 18 additions and 0 deletions
18
action.yml
Normal file
18
action.yml
Normal file
|
@ -0,0 +1,18 @@
|
|||
name: Setup uv cache
|
||||
description: Composite action to determine uv cache dir and restore cache.
|
||||
author: Daniel Fichtinger
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Get uv cache directory
|
||||
id: uv-cache
|
||||
shell: bash
|
||||
run: |
|
||||
echo "dir=$(uv cache dir)" >> "$GITHUB_OUTPUT"
|
||||
- name: Restore uv cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ${{ steps.uv-cache.outputs.dir }}
|
||||
key: ${{ runner.os }}-uv-${{ hashFiles('**/*requirements*.txt', '**/*requirements*.in', '**/*constraints*.txt', '**/*constraints*.in', '**/pyproject.toml', '**/uv.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-uv-
|
Loading…
Add table
Add a link
Reference in a new issue