-
Notifications
You must be signed in to change notification settings - Fork 7
/
action.yml
73 lines (68 loc) · 3 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: 'Cache Nix store'
description: 'Cache Nix store using GitHub Actions cache to speed up workflows.'
author: 'GitHub'
inputs:
key:
description: 'An explicit key for restoring and saving the cache.'
required: true
restore-keys:
description: 'An ordered list of keys to use for restoring stale cache if no cache hit occurred for key. Note `cache-hit` returns false in this case.'
upload-chunk-size:
description: 'The chunk size used to split up large files during upload, in bytes.'
enableCrossOsArchive:
description: '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'
fail-on-cache-miss:
description: 'Fail the workflow if cache entry is not found.'
default: 'false'
lookup-only:
description: 'Check if a cache entry exists for the given input(s) (key, restore-keys) without downloading the cache.'
default: 'false'
extra-restore-keys:
description: 'A newline-separated list of key prefixes used for restoring multiple caches.'
default: ''
restore-key-hit:
description: "When true, if a cache key matching `restore-keys` exists, it counts as a cache hit. Thus, a job won't save a new cache."
default: 'false'
gc-macos:
description: 'When `true`, enables on `macOS` runners Nix store garbage collection before saving a cache.'
default: 'false'
gc-max-store-size-macos:
description: 'Maximum Nix store size in bytes on `macOS` runners. Requires `gc-macos: true`.'
gc-linux:
description: 'When `true`, enables on `Linux` runners Nix store garbage collection before saving a cache.'
default: 'false'
gc-max-store-size-linux:
description: 'Maximum Nix store size in bytes on `Linux` runners. Requires `gc-linux: true`.'
purge:
description: 'When `true`, purge old caches before saving a new cache with a `key`.'
default: 'false'
purge-keys:
description: 'A newline-separated list of cache key prefixes used to purge caches. An empty string is equivalent to the `key` input.'
default: ''
purge-accessed:
description: 'When `true`, purge caches by `last accessed` time. Requires `purge: true`.'
default: 'false'
purge-accessed-max-age:
description: 'Purge caches accessed more than this number of seconds ago. Requires `purge-accessed: true`.'
default: '604800'
purge-created:
description: 'When `true`, purge caches by `created` time. Requires `purge: true`.'
default: 'true'
purge-created-max-age:
description: 'Purge caches created more than this number of seconds ago. Requires `purge-created: true`.'
default: '604800'
token:
description: 'Used to communicate with GitHub API.'
default: ${{ github.token }}
outputs:
cache-hit:
description: 'A boolean value to indicate an exact match was found for the primary key.'
runs:
using: 'node16'
main: 'dist/restore/index.js'
post: 'dist/save/index.js'
post-if: success()
branding:
icon: 'archive'
color: 'gray-dark'