Skip to content

Commit e76a94b

Browse files
feat(actions): update gradle/gradle-build-action@v3 (#1391)
Created automatically. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent b49d8c9 commit e76a94b

File tree

2 files changed

+31
-17
lines changed

2 files changed

+31
-17
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
bdf99f9dada2506e990bac6de8ec5e3de34a04f1
1+
8baac4c8ef753599f92eeb509c246d09d6250fa6

github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/gradle/GradleBuildActionV3.kt

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import kotlin.collections.toTypedArray
3131
*
3232
* @param gradleVersion Gradle version to use. If specified, this Gradle version will be downloaded,
3333
* added to the PATH and used for invoking Gradle.
34+
* If not provided, it is assumed that the project uses the Gradle Wrapper.
3435
* @param cacheDisabled When 'true', all caching is disabled. No entries will be written to or read
3536
* from the cache.
3637
* @param cacheReadOnly When 'true', existing entries will be read from the cache but no entries
@@ -56,8 +57,9 @@ import kotlin.collections.toTypedArray
5657
* Valid values are 'never' (default), 'always', and 'on-failure'. No action will be taken if the
5758
* workflow was not triggered from a pull request.
5859
* @param dependencyGraph Specifies if a GitHub dependency snapshot should be generated for each
59-
* Gradle build, and if so, how. Valid values are 'disabled' (default), 'generate',
60-
* 'generate-and-submit', 'generate-and-upload', 'download-and-submit' and 'clear'.
60+
* Gradle build, and if so, how.
61+
* Valid values are 'disabled' (default), 'generate', 'generate-and-submit', 'generate-and-upload',
62+
* 'download-and-submit' and 'clear'.
6163
* @param dependencyGraphContinueOnFailure When 'false' a failure to generate or submit a dependency
6264
* graph will fail the Step or Job. When 'true' a warning will be emitted but no failure will result.
6365
* @param artifactRetentionDays Specifies the number of days to retain any artifacts generated by
@@ -70,14 +72,17 @@ import kotlin.collections.toTypedArray
7072
* 'https://gradle.com/terms-of-service' or 'https://gradle.com/help/legal-terms-of-use'.
7173
* @param buildScanTermsOfUseAgree Indicate that you agree to the Build Scan® terms of use. This
7274
* input value must be "yes".
75+
* @param validateWrappers When 'true', the action will perform the 'wrapper-validation' action
76+
* automatically.
77+
* If the wrapper checksums are not valid, the action will fail.
7378
* @param buildScanTermsOfServiceUrl The URL to the Build Scan® terms of use. This input must be set
7479
* to 'https://gradle.com/terms-of-service'.
7580
* @param buildScanTermsOfServiceAgree Indicate that you agree to the Build Scan® terms of use. This
7681
* input value must be "yes".
82+
* @param generateJobSummary When 'false', no Job Summary will be generated for the Job.
7783
* @param arguments Gradle command line arguments (supports multi-line input)
7884
* @param buildRootDirectory Path to the root directory of the build. Default is the root of the
7985
* GitHub workspace.
80-
* @param generateJobSummary When 'false', no Job Summary will be generated for the Job.
8186
* @param gradleHomeCacheStrictMatch When 'true', the action will not attempt to restore the Gradle
8287
* User Home entries from other Jobs.
8388
* @param workflowJobContext Used to uniquely identify the current job invocation. Defaults to the
@@ -93,6 +98,7 @@ public data class GradleBuildActionV3 private constructor(
9398
/**
9499
* Gradle version to use. If specified, this Gradle version will be downloaded, added to the
95100
* PATH and used for invoking Gradle.
101+
* If not provided, it is assumed that the project uses the Gradle Wrapper.
96102
*/
97103
public val gradleVersion: String? = null,
98104
/**
@@ -148,7 +154,8 @@ public data class GradleBuildActionV3 private constructor(
148154
public val addJobSummaryAsPrComment: GradleBuildActionV3.AddJobSummaryAsPrComment? = null,
149155
/**
150156
* Specifies if a GitHub dependency snapshot should be generated for each Gradle build, and if
151-
* so, how. Valid values are 'disabled' (default), 'generate', 'generate-and-submit',
157+
* so, how.
158+
* Valid values are 'disabled' (default), 'generate', 'generate-and-submit',
152159
* 'generate-and-upload', 'download-and-submit' and 'clear'.
153160
*/
154161
public val dependencyGraph: GradleBuildActionV3.DependencyGraph? = null,
@@ -177,6 +184,11 @@ public data class GradleBuildActionV3 private constructor(
177184
* Indicate that you agree to the Build Scan® terms of use. This input value must be "yes".
178185
*/
179186
public val buildScanTermsOfUseAgree: String? = null,
187+
/**
188+
* When 'true', the action will perform the 'wrapper-validation' action automatically.
189+
* If the wrapper checksums are not valid, the action will fail.
190+
*/
191+
public val validateWrappers: Boolean? = null,
180192
/**
181193
* The URL to the Build Scan® terms of use. This input must be set to
182194
* 'https://gradle.com/terms-of-service'.
@@ -186,6 +198,10 @@ public data class GradleBuildActionV3 private constructor(
186198
* Indicate that you agree to the Build Scan® terms of use. This input value must be "yes".
187199
*/
188200
public val buildScanTermsOfServiceAgree: String? = null,
201+
/**
202+
* When 'false', no Job Summary will be generated for the Job.
203+
*/
204+
public val generateJobSummary: Boolean? = null,
189205
/**
190206
* Gradle command line arguments (supports multi-line input)
191207
*/
@@ -194,10 +210,6 @@ public data class GradleBuildActionV3 private constructor(
194210
* Path to the root directory of the build. Default is the root of the GitHub workspace.
195211
*/
196212
public val buildRootDirectory: String? = null,
197-
/**
198-
* When 'false', no Job Summary will be generated for the Job.
199-
*/
200-
public val generateJobSummary: Boolean? = null,
201213
/**
202214
* When 'true', the action will not attempt to restore the Gradle User Home entries from other
203215
* Jobs.
@@ -242,11 +254,12 @@ public data class GradleBuildActionV3 private constructor(
242254
buildScanPublish: Boolean? = null,
243255
buildScanTermsOfUseUrl: String? = null,
244256
buildScanTermsOfUseAgree: String? = null,
257+
validateWrappers: Boolean? = null,
245258
buildScanTermsOfServiceUrl: String? = null,
246259
buildScanTermsOfServiceAgree: String? = null,
260+
generateJobSummary: Boolean? = null,
247261
arguments: String? = null,
248262
buildRootDirectory: String? = null,
249-
generateJobSummary: Boolean? = null,
250263
gradleHomeCacheStrictMatch: String? = null,
251264
workflowJobContext: String? = null,
252265
githubToken: String? = null,
@@ -261,10 +274,11 @@ public data class GradleBuildActionV3 private constructor(
261274
dependencyGraphContinueOnFailure=dependencyGraphContinueOnFailure,
262275
artifactRetentionDays=artifactRetentionDays, buildScanPublish=buildScanPublish,
263276
buildScanTermsOfUseUrl=buildScanTermsOfUseUrl,
264-
buildScanTermsOfUseAgree=buildScanTermsOfUseAgree,
277+
buildScanTermsOfUseAgree=buildScanTermsOfUseAgree, validateWrappers=validateWrappers,
265278
buildScanTermsOfServiceUrl=buildScanTermsOfServiceUrl,
266-
buildScanTermsOfServiceAgree=buildScanTermsOfServiceAgree, arguments=arguments,
267-
buildRootDirectory=buildRootDirectory, generateJobSummary=generateJobSummary,
279+
buildScanTermsOfServiceAgree=buildScanTermsOfServiceAgree,
280+
generateJobSummary=generateJobSummary, arguments=arguments,
281+
buildRootDirectory=buildRootDirectory,
268282
gradleHomeCacheStrictMatch=gradleHomeCacheStrictMatch,
269283
workflowJobContext=workflowJobContext, githubToken=githubToken,
270284
_customInputs=_customInputs, _customVersion=_customVersion)
@@ -290,11 +304,12 @@ public data class GradleBuildActionV3 private constructor(
290304
buildScanPublish?.let { "build-scan-publish" to it.toString() },
291305
buildScanTermsOfUseUrl?.let { "build-scan-terms-of-use-url" to it },
292306
buildScanTermsOfUseAgree?.let { "build-scan-terms-of-use-agree" to it },
307+
validateWrappers?.let { "validate-wrappers" to it.toString() },
293308
buildScanTermsOfServiceUrl?.let { "build-scan-terms-of-service-url" to it },
294309
buildScanTermsOfServiceAgree?.let { "build-scan-terms-of-service-agree" to it },
310+
generateJobSummary?.let { "generate-job-summary" to it.toString() },
295311
arguments?.let { "arguments" to it },
296312
buildRootDirectory?.let { "build-root-directory" to it },
297-
generateJobSummary?.let { "generate-job-summary" to it.toString() },
298313
gradleHomeCacheStrictMatch?.let { "gradle-home-cache-strict-match" to it },
299314
workflowJobContext?.let { "workflow-job-context" to it },
300315
githubToken?.let { "github-token" to it },
@@ -355,14 +370,13 @@ public data class GradleBuildActionV3 private constructor(
355370
) : Action.Outputs(stepId) {
356371
/**
357372
* Link to the Build Scan® generated by a Gradle build. Note that this output applies to a
358-
* Step executing Gradle, not to the `gradle-build-action` Step itself.
373+
* Step executing Gradle, not to the `setup-gradle` Step itself.
359374
*/
360375
public val buildScanUrl: String = "steps.$stepId.outputs.build-scan-url"
361376

362377
/**
363378
* Path to the GitHub Dependency Graph snapshot file generated by a Gradle build. Note that
364-
* this output applies to a Step executing Gradle, not to the `gradle-build-action` Step
365-
* itself.
379+
* this output applies to a Step executing Gradle, not to the `setup-gradle` Step itself.
366380
*/
367381
public val dependencyGraphFile: String = "steps.$stepId.outputs.dependency-graph-file"
368382

0 commit comments

Comments
 (0)