Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

Commit f02f491

Browse files
committed
Update action.yml for [email protected]
1 parent cb6e43f commit f02f491

File tree

1 file changed

+35
-24
lines changed

1 file changed

+35
-24
lines changed

action.yml

Lines changed: 35 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
name: "Gradle Build Action"
22
description: 'Configures Gradle for GitHub actions, caching state and generating a dependency graph via Dependency Submission.'
33

4-
# https://help.github.com/en/articles/metadata-syntax-for-github-actions
5-
64
inputs:
75
gradle-version:
8-
description: Gradle version to use. If specified, this Gradle version will be downloaded, added to the PATH and used for invoking Gradle.
6+
description: |
7+
Gradle version to use. If specified, this Gradle version will be downloaded, added to the PATH and used for invoking Gradle.
8+
If not provided, it is assumed that the project uses the Gradle Wrapper.
99
required: false
1010

11+
# Cache configuration
1112
cache-disabled:
1213
description: When 'true', all caching is disabled. No entries will be written to or read from the cache.
1314
required: false
@@ -49,15 +50,13 @@ inputs:
4950
gradle-home-cache-excludes:
5051
description: Paths within Gradle User Home to exclude from cache.
5152
required: false
52-
# e.g. Use the following setting to prevent the local build cache from being saved/restored
53-
# gradle-home-cache-excludes: |
54-
# caches/build-cache-1
5553

5654
gradle-home-cache-cleanup:
5755
description: When 'true', the action will attempt to remove any stale/unused entries from the Gradle User Home prior to saving to the GitHub Actions cache.
5856
required: false
5957
default: false
6058

59+
# Job summary configuration
6160
add-job-summary:
6261
description: Specifies when a Job Summary should be inluded in the action results. Valid values are 'never', 'always' (default), and 'on-failure'.
6362
required: false
@@ -68,8 +67,11 @@ inputs:
6867
required: false
6968
default: 'never'
7069

70+
# Dependency Graph configuration
7171
dependency-graph:
72-
description: Specifies if a GitHub dependency snapshot should be generated for each Gradle build, and if so, how. Valid values are 'disabled' (default), 'generate', 'generate-and-submit', 'generate-and-upload', 'download-and-submit' and 'clear'.
72+
description: |
73+
Specifies if a GitHub dependency snapshot should be generated for each Gradle build, and if so, how.
74+
Valid values are 'disabled' (default), 'generate', 'generate-and-submit', 'generate-and-upload', 'download-and-submit' and 'clear'.
7375
required: false
7476
default: 'disabled'
7577

@@ -82,6 +84,7 @@ inputs:
8284
description: Specifies the number of days to retain any artifacts generated by the action. If not set, the default retention settings for the repository will apply.
8385
required: false
8486

87+
# Build Scan configuration
8588
build-scan-publish:
8689
description: |
8790
Set to 'true' to automatically publish build results as a Build Scan on scans.gradle.com.
@@ -97,6 +100,14 @@ inputs:
97100
description: Indicate that you agree to the Build Scan® terms of use. This input value must be "yes".
98101
required: false
99102

103+
# Wrapper validation configuration
104+
validate-wrappers:
105+
description: |
106+
When 'true', the action will perform the 'wrapper-validation' action automatically.
107+
If the wrapper checksums are not valid, the action will fail.
108+
required: false
109+
default: false
110+
100111
# DEPRECATED ACTION INPUTS
101112
build-scan-terms-of-service-url:
102113
description: The URL to the Build Scan® terms of use. This input must be set to 'https://gradle.com/terms-of-service'.
@@ -108,31 +119,33 @@ inputs:
108119
required: false
109120
deprecation-message: The input has been renamed to align with the Develocity API. Use 'build-scan-terms-of-use-agree' instead.
110121

122+
generate-job-summary:
123+
description: When 'false', no Job Summary will be generated for the Job.
124+
required: false
125+
default: true
126+
deprecation-message: Superceded by the new 'add-job-summary' and 'add-job-summary-as-pr-comment' parameters.
127+
111128
arguments:
112129
description: Gradle command line arguments (supports multi-line input)
113130
required: false
114-
deprecation-message: Using the action to execute Gradle directly is deprecated in favor of using the action to setup Gradle, and executing Gradle in a subsequent Step. See https://github.com/gradle/gradle-build-action?tab=readme-ov-file#use-the-action-to-setup-gradle.
131+
deprecation-message: Using the action to execute Gradle directly is deprecated in favor of using the action to setup Gradle, and executing Gradle in a subsequent Step.
115132

116133
build-root-directory:
117134
description: Path to the root directory of the build. Default is the root of the GitHub workspace.
118135
required: false
119-
deprecation-message: Using the action to execute Gradle directly is deprecated in favor of using the action to setup Gradle, and executing Gradle in a subsequent Step. See https://github.com/gradle/gradle-build-action?tab=readme-ov-file#use-the-action-to-setup-gradle.
120-
121-
generate-job-summary:
122-
description: When 'false', no Job Summary will be generated for the Job.
123-
required: false
124-
default: true
125-
deprecation-message: Superceded by the new 'add-job-summary' and 'add-job-summary-as-pr-comment' parameters.
136+
deprecation-message: Using the action to execute Gradle directly is deprecated in favor of using the action to setup Gradle, and executing Gradle in a subsequent Step.
126137

127-
# EXPERIMENTAL & INTERNAL ACTION INPUTS
138+
# EXPERIMENTAL ACTION INPUTS
128139
# The following action properties allow fine-grained tweaking of the action caching behaviour.
129-
# These properties are experimental and not (yet) designed for production use, and may change without notice in a subsequent release of `gradle-build-action`.
140+
# These properties are experimental and not (yet) designed for production use, and may change without notice in a subsequent release of `setup-gradle`.
130141
# Use at your own risk!
131142
gradle-home-cache-strict-match:
132143
description: When 'true', the action will not attempt to restore the Gradle User Home entries from other Jobs.
133144
required: false
134145
default: false
135146

147+
# INTERNAL ACTION INPUTS
148+
# These inputs should not be configured directly, and are only used to pass environmental information to the action
136149
workflow-job-context:
137150
description: Used to uniquely identify the current job invocation. Defaults to the matrix values for this job; this should not be overridden by users (INTERNAL).
138151
required: false
@@ -145,21 +158,18 @@ inputs:
145158

146159
outputs:
147160
build-scan-url:
148-
description: Link to the Build Scan® generated by a Gradle build. Note that this output applies to a Step executing Gradle, not to the `gradle-build-action` Step itself.
149-
value: ${{ steps.setup-gradle.outputs.build-scan-url }}
161+
description: Link to the Build Scan® generated by a Gradle build. Note that this output applies to a Step executing Gradle, not to the `setup-gradle` Step itself.
150162
dependency-graph-file:
151-
description: Path to the GitHub Dependency Graph snapshot file generated by a Gradle build. Note that this output applies to a Step executing Gradle, not to the `gradle-build-action` Step itself.
152-
value: ${{ steps.setup-gradle.outputs.dependency-graph-file }}
163+
description: Path to the GitHub Dependency Graph snapshot file generated by a Gradle build. Note that this output applies to a Step executing Gradle, not to the `setup-gradle` Step itself.
153164
gradle-version:
154165
description: Version of Gradle that was setup by the action
155-
value: ${{ steps.setup-gradle.outputs.gradle-version }}
156166

157167
runs:
158168
using: "composite"
159169
steps:
160170
- name: Setup Gradle
161171
id: setup-gradle
162-
uses: gradle/actions/setup-gradle@v3.2.1
172+
uses: gradle/actions/setup-gradle@v3.3.0
163173
with:
164174
gradle-version: ${{ inputs.gradle-version }}
165175
cache-disabled: ${{ inputs.cache-disabled }}
@@ -178,11 +188,12 @@ runs:
178188
build-scan-publish: ${{ inputs.build-scan-publish }}
179189
build-scan-terms-of-use-url: ${{ inputs.build-scan-terms-of-use-url }}
180190
build-scan-terms-of-use-agree: ${{ inputs.build-scan-terms-of-use-agree }}
191+
validate-wrappers: ${{ inputs.validate-wrappers }}
181192
build-scan-terms-of-service-url: ${{ inputs.build-scan-terms-of-service-url }}
182193
build-scan-terms-of-service-agree: ${{ inputs.build-scan-terms-of-service-agree }}
194+
generate-job-summary: ${{ inputs.generate-job-summary }}
183195
arguments: ${{ inputs.arguments }}
184196
build-root-directory: ${{ inputs.build-root-directory }}
185-
generate-job-summary: ${{ inputs.generate-job-summary }}
186197
gradle-home-cache-strict-match: ${{ inputs.gradle-home-cache-strict-match }}
187198
workflow-job-context: ${{ inputs.workflow-job-context }}
188199
github-token: ${{ inputs.github-token }}

0 commit comments

Comments
 (0)