fix cache hit output

This commit is contained in:
Daniel Fichtinger 2025-07-16 01:08:29 -04:00
parent dac7f7aea0
commit f05f233626

View file

@ -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"