Skip to content

Commit 13aacd8

Browse files
authoredJan 16, 2024
Merge pull request #1242 from to-s/main
feat: save-always flag
2 parents 65b8989 + 53b35c5 commit 13aacd8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎action.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,18 @@ inputs:
2626
description: 'Check if a cache entry exists for the given input(s) (key, restore-keys) without downloading the cache'
2727
default: 'false'
2828
required: false
29+
save-always:
30+
description: 'Run the post step to save the cache even if another step before fails'
31+
default: 'false'
32+
required: false
2933
outputs:
3034
cache-hit:
3135
description: 'A boolean value to indicate an exact match was found for the primary key'
3236
runs:
3337
using: 'node20'
3438
main: 'dist/restore/index.js'
3539
post: 'dist/save/index.js'
36-
post-if: success()
40+
post-if: "success() || github.event.inputs.save-always"
3741
branding:
3842
icon: 'archive'
3943
color: 'gray-dark'

0 commit comments

Comments
 (0)
Please sign in to comment.