forked from switchoapp/actions-cache-s3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
65 lines (65 loc) · 2.29 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
name: 'Cache S3'
description: 'actions/cache@v2 for AWS S3 and compatible software (forked Actions)'
author: 'whywaita'
inputs:
path:
description: 'A list of files, directories, and wildcard patterns to cache and restore'
required: true
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.'
required: false
upload-chunk-size:
description: 'The chunk size used to split up large files during upload, in bytes'
required: false
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'
required: false
fail-on-cache-miss:
description: 'Fail the workflow if cache entry is not found'
default: 'false'
required: false
lookup-only:
description: 'Check if a cache entry exists for the given input(s) (key, restore-keys) without downloading the cache'
default: 'false'
required: false
aws-s3-bucket:
description: 'An AWS S3 bucket to save cache'
required: true
aws-access-key-id:
description: 'An AWS access key id to access the bucket'
required: false
aws-secret-access-key:
description: 'An AWS secret access key to access the bucket'
required: false
aws-session-token:
description: 'An AWS session token to access the bucket'
required: false
aws-region:
description: 'An AWS region where the bucket is located'
required: false
aws-endpoint:
description: 'An endpoint of AWS S3 (for compatible software)'
required: false
aws-s3-bucket-endpoint:
description: 'Whether to use the bucket name as the endpoint for this request.'
required: false
default: 'true'
aws-s3-force-path-style:
description: 'Whether to force path style URLs for S3 objects.'
required: false
default: 'false'
outputs:
cache-hit:
description: 'A boolean value to indicate an exact match was found for the primary key'
runs:
using: 'node20'
main: 'dist/restore/index.js'
post: 'dist/save/index.js'
post-if: success()
branding:
icon: 'archive'
color: 'gray-dark'