diff --git a/action.yml b/action.yml index 0226a6c..909304f 100644 --- a/action.yml +++ b/action.yml @@ -2,9 +2,9 @@ name: Setup uv cache description: Composite action to determine uv cache dir and restore cache. author: Daniel Fichtinger outputs: - uv-cache-hit: + cache-hit: description: "Whether the uv cache was restored" - value: ${{ steps.cache-restore.outputs.cache-hit }} + value: ${{ steps.cache-output.outputs.cache-hit }} runs: using: "composite" steps: @@ -21,3 +21,8 @@ runs: key: ${{ runner.os }}-uv-${{ hashFiles('**/*requirements*.txt', '**/*requirements*.in', '**/*constraints*.txt', '**/*constraints*.in', '**/pyproject.toml', '**/uv.lock') }} restore-keys: | ${{ runner.os }}-uv- + - name: Capture cache-hit output + id: cache-output + shell: bash + run: | + echo "cache-hit=${{ steps.cache-restore.outputs.cache-hit }}" >> "$GITHUB_OUTPUT"