Skip to content

Commit 13ae65d

Browse files
committed
Fix delete cache
1 parent b8fb4c8 commit 13ae65d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/actions/save-runtime-cache/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,15 @@ runs:
2626
- id: delete
2727
if: ${{ steps.lookup-runtime-cache.outputs.cache-hit }}
2828
uses: actions/github-script@v7
29+
env:
30+
RUNTIME_CACHE_KEY: ${{ steps.lookup-runtime-cache.outputs.key }}
2931
with:
3032
script: |
33+
const { RUNTIME_CACHE_KEY } = process.env
3134
github.rest.actions.deleteActionsCacheById({
3235
owner: context.repo.owner,
3336
repo: context.repo.repo,
34-
cache_id: steps.lookup-runtime-cache.outputs.key,
37+
cache_id: `${RUNTIME_CACHE_KEY}`,
3538
})
3639
3740
- id: save

0 commit comments

Comments
 (0)