You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add fail-on-cache-miss option
* Small improvements
* Changes after rebase
* Update description
* Only fail if no cache entry is found
* Code review
* Update readme
* Add additional test case
* Bump version + changelog
* Update package-lock.json
* Update Readme
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,7 @@ See ["Caching dependencies to speed up workflows"](https://docs.github.com/en/ac
30
30
* Allowing users to provide a custom timeout as input for aborting download of a cache segment using an environment variable `SEGMENT_DOWNLOAD_TIMEOUT_MINS`. Default is 60 minutes.
31
31
* Two new actions available for granular control over caches - [restore](restore/action.yml) and [save](save/action.yml)
32
32
* Support cross-os caching as an opt-in feature. See [Cross OS caching](./tips-and-workarounds.md#cross-os-cache) for more info.
33
+
* Added option to fail job on cache miss. See [Exit workflow on cache miss](./restore/README.md#exit-workflow-on-cache-miss) for more info.
33
34
34
35
Refer [here](https://github.com/actions/cache/blob/v2/README.md) for previous versions
35
36
@@ -49,6 +50,7 @@ If you are using a `self-hosted` Windows runner, `GNU tar` and `zstd` are requir
49
50
*`key` - An explicit key for restoring and saving the cache. Refer [creating a cache key](#creating-a-cache-key).
50
51
*`restore-keys` - An ordered list of prefix-matched keys to use for restoring stale cache if no cache hit occurred for key.
51
52
*`enableCrossOsArchive` - An optional boolean when enabled, allows Windows runners to save or restore caches that can be restored or saved respectively on other platforms. Default: false
53
+
*`fail-on-cache-miss` - Fail the workflow if cache entry is not found. Default: false
Copy file name to clipboardExpand all lines: action.yml
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,10 @@ inputs:
18
18
description: 'An optional boolean when enabled, allows windows runners to save or restore caches that can be restored or saved respectively on other platforms'
19
19
default: 'false'
20
20
required: false
21
+
fail-on-cache-miss:
22
+
description: 'Fail the workflow if cache entry is not found'
23
+
default: 'false'
24
+
required: false
21
25
outputs:
22
26
cache-hit:
23
27
description: 'A boolean value to indicate an exact match was found for the primary key'
0 commit comments