Added cache-hit output
This commit is contained in:
parent
9f172ed7df
commit
0d5ceb4786
2 changed files with 11 additions and 0 deletions
|
@ -1,6 +1,10 @@
|
|||
name: Setup uv cache
|
||||
description: Composite action to determine uv cache dir and restore cache.
|
||||
author: Daniel Fichtinger
|
||||
outputs:
|
||||
uv-cache-hit:
|
||||
description: "Whether the uv cache was restored"
|
||||
value: ${{ steps.cache-restore.outputs.cache-hit }}
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
|
@ -10,6 +14,7 @@ runs:
|
|||
run: |
|
||||
echo "dir=$(uv cache dir)" >> "$GITHUB_OUTPUT"
|
||||
- name: Restore uv cache
|
||||
id: cache-restoree
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ${{ steps.uv-cache.outputs.dir }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue