fix cache hit output
This commit is contained in:
parent
dac7f7aea0
commit
f05f233626
1 changed files with 7 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue