-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathaction.yml
More file actions
84 lines (82 loc) · 2.75 KB
/
Copy pathaction.yml
File metadata and controls
84 lines (82 loc) · 2.75 KB
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
74
75
76
77
78
79
80
81
82
83
84
name: Gradle Cache
description: >
Save and restore Gradle build caches using bundle-cache.
Restores a cache bundle before the build and automatically saves it afterward.
Uses the GitHub Actions cache by default — no S3 setup required.
author: block
branding:
icon: archive
color: green
inputs:
cache-key:
description: >
Cache key identifying the bundle (e.g. "assembleDebug"). Defaults to the
job name so each job gets its own cache automatically.
required: false
default: ${{ github.job }}
bucket:
description: >
S3 bucket name. When set, uses S3 instead of the GitHub Actions cache.
required: false
region:
description: AWS region for the S3 bucket.
required: false
default: us-west-2
key-prefix:
description: >
Optional path prefix prepended to all S3 object keys. Useful for
namespacing objects within a shared bucket.
required: false
ref:
description: >
Git ref used to search for a base bundle. On pull_request restores, the
tool walks history from the merge-base of this ref and HEAD. Defaults to
the repository's default branch.
required: false
branch:
description: >
Branch name for delta cache support. On pull_request events this is
auto-detected from GITHUB_HEAD_REF, so you typically don't need to set
it. When active, restore applies a branch delta concurrently with the
base bundle, and save-delta runs in the post step instead of a full save.
On pushes to the default branch, a full bundle is saved automatically.
required: false
project-dir:
description: >
Path to the Gradle project root. Used for the git history walk and as
the working directory for save/restore. Defaults to the repository root.
required: false
default: .
gradle-user-home:
description: Path to GRADLE_USER_HOME.
required: false
default: ~/.gradle
included-build:
description: >
Comma-separated list of included build paths to archive
(e.g. "buildSrc,build-logic"). Defaults to buildSrc.
required: false
save:
description: Whether to save the cache after the build. Set to "false" to skip.
required: false
default: "true"
version:
description: >
Version of gradle-cache to install (e.g. "v0.3.0"). Defaults to latest.
required: false
log-level:
description: "Log level: debug, info, warn, or error."
required: false
default: info
github-token:
description: >
GitHub token used for cache management (e.g. deleting stale delta
entries). Defaults to the automatic GITHUB_TOKEN.
required: false
default: ${{ github.token }}
runs:
using: node24
pre: dist/pre/index.js
main: dist/main/index.js
post: dist/post/index.js
post-if: always()