mirror of
https://github.com/actions/cache.git
synced 2024-12-27 14:51:04 +08:00
Merge pull request #1242 from to-s/main
Some checks failed
Tests / build (macOS-latest) (push) Waiting to run
Tests / build (windows-latest) (push) Waiting to run
Tests / test-save (macOS-latest) (push) Waiting to run
Tests / test-save (windows-latest) (push) Waiting to run
Tests / test-restore (macOS-latest) (push) Blocked by required conditions
Tests / test-restore (ubuntu-latest) (push) Blocked by required conditions
Tests / test-restore (windows-latest) (push) Blocked by required conditions
Check dist/ / Check dist/ (push) Failing after 1s
Licensed / Licensed (push) Failing after 2s
Code scanning - action / CodeQL-Build (push) Failing after 5s
Tests / test-proxy-save (push) Failing after 7s
Tests / test-proxy-restore (push) Has been skipped
Tests / test-save (ubuntu-latest) (push) Successful in 14s
Tests / build (ubuntu-latest) (push) Successful in 12m53s
Some checks failed
Tests / build (macOS-latest) (push) Waiting to run
Tests / build (windows-latest) (push) Waiting to run
Tests / test-save (macOS-latest) (push) Waiting to run
Tests / test-save (windows-latest) (push) Waiting to run
Tests / test-restore (macOS-latest) (push) Blocked by required conditions
Tests / test-restore (ubuntu-latest) (push) Blocked by required conditions
Tests / test-restore (windows-latest) (push) Blocked by required conditions
Check dist/ / Check dist/ (push) Failing after 1s
Licensed / Licensed (push) Failing after 2s
Code scanning - action / CodeQL-Build (push) Failing after 5s
Tests / test-proxy-save (push) Failing after 7s
Tests / test-proxy-restore (push) Has been skipped
Tests / test-save (ubuntu-latest) (push) Successful in 14s
Tests / build (ubuntu-latest) (push) Successful in 12m53s
feat: save-always flag
This commit is contained in:
commit
13aacd865c
@ -26,6 +26,10 @@ inputs:
|
||||
description: 'Check if a cache entry exists for the given input(s) (key, restore-keys) without downloading the cache'
|
||||
default: 'false'
|
||||
required: false
|
||||
save-always:
|
||||
description: 'Run the post step to save the cache even if another step before fails'
|
||||
default: 'false'
|
||||
required: false
|
||||
outputs:
|
||||
cache-hit:
|
||||
description: 'A boolean value to indicate an exact match was found for the primary key'
|
||||
@ -33,7 +37,7 @@ runs:
|
||||
using: 'node20'
|
||||
main: 'dist/restore/index.js'
|
||||
post: 'dist/save/index.js'
|
||||
post-if: success()
|
||||
post-if: "success() || github.event.inputs.save-always"
|
||||
branding:
|
||||
icon: 'archive'
|
||||
color: 'gray-dark'
|
||||
|
Loading…
x
Reference in New Issue
Block a user