From 9f172ed7df57ab18904b25d0f3336fc26489f8ca Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Wed, 16 Jul 2025 00:45:26 -0400 Subject: [PATCH] init --- action.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 action.yml diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..4ab22f8 --- /dev/null +++ b/action.yml @@ -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-