forked from tespkg/actions-cache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
63 lines (63 loc) · 1.77 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
name: "s3 cache"
author: tespkg
description: "S3 actions cache with actions/cache@v2 passthrough"
inputs:
endpoint:
description: "s3 / minio endpoint, see: https://docs.min.io/docs/javascript-client-api-reference.html"
required: false
default: s3.amazonaws.com
region:
description: "AWS region"
required: false
port:
description: minio port
required: false
insecure:
description: use insecure http connection to minio
required: false
accessKey:
description: s3 / minio accessKey
required: true
secretKey:
description: s3 / minio secretKey
required: true
sessionToken:
description: s3 session token - required when using role
required: false
bucket:
description: s3 / minio bucket
required: true
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 the cache if no cache hit occurred for key"
required: false
use-fallback:
description: "Use github actions/cache as fallback"
required: false
default: "true"
# zip-option:
# description: zip options
# required: false
# default: -ryq
# unzip-option:
# description: unzip options
# required: false
# default: -n
outputs:
cache-hit:
description: "A boolean value to indicate an exact match was found for the primary key"
cache-size:
description: "A integer value denoting the size of the cache object found (measured in bytes)"
runs:
using: node20
main: "dist/restore/index.js"
post: "dist/save/index.js"
post-if: "success()"
branding:
icon: "archive"
color: "gray-dark"