Skip to content

Commit

Permalink
feat(actions): update gradle/gradle-build-action@v2 (#1154)
Browse files Browse the repository at this point in the history
Created automatically.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Nov 30, 2023
1 parent 81e1031 commit f76cacb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
2 changes: 1 addition & 1 deletion actions/gradle/gradle-build-action/v2/commit-hash.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ef76a971e2fa3f867b617efd72f2fbd72cf6f8bc
87a9a15658c426a54dd469d4fc7dc1a73ca9d4a6
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import io.github.typesafegithub.workflows.domain.actions.Action
import io.github.typesafegithub.workflows.domain.actions.RegularAction
import java.util.LinkedHashMap
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
Expand Down Expand Up @@ -71,6 +72,11 @@ public data class GradleBuildActionV2 private constructor(
* Paths within Gradle User Home to exclude from cache.
*/
public val gradleHomeCacheExcludes: List<String>? = null,
/**
* 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.
*/
public val gradleHomeCacheCleanup: Boolean? = null,
/**
* Gradle command line arguments (supports multi-line input)
*/
Expand All @@ -85,6 +91,11 @@ public data class GradleBuildActionV2 private constructor(
* 'download-and-submit'.
*/
public val dependencyGraph: GradleBuildActionV2.DependencyGraph? = null,
/**
* 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.
*/
public val artifactRetentionDays: Int? = null,
/**
* When 'true', the action will not attempt to restore the Gradle User Home entries from other
* Jobs.
Expand All @@ -95,11 +106,6 @@ public data class GradleBuildActionV2 private constructor(
* job; this should not be overridden by users (INTERNAL).
*/
public val workflowJobContext: String? = null,
/**
* 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.
*/
public val gradleHomeCacheCleanup: Boolean? = null,
/**
* The GitHub token used to authenticate when submitting via the Dependency Submission API.
*/
Expand All @@ -126,12 +132,13 @@ public data class GradleBuildActionV2 private constructor(
cacheOverwriteExisting: Boolean? = null,
gradleHomeCacheIncludes: List<String>? = null,
gradleHomeCacheExcludes: List<String>? = null,
gradleHomeCacheCleanup: Boolean? = null,
arguments: String? = null,
generateJobSummary: Boolean? = null,
dependencyGraph: GradleBuildActionV2.DependencyGraph? = null,
artifactRetentionDays: Int? = null,
gradleHomeCacheStrictMatch: String? = null,
workflowJobContext: String? = null,
gradleHomeCacheCleanup: Boolean? = null,
githubToken: String? = null,
_customInputs: Map<String, String> = mapOf(),
_customVersion: String? = null,
Expand All @@ -140,11 +147,13 @@ public data class GradleBuildActionV2 private constructor(
cacheReadOnly=cacheReadOnly, cacheWriteOnly=cacheWriteOnly,
cacheOverwriteExisting=cacheOverwriteExisting,
gradleHomeCacheIncludes=gradleHomeCacheIncludes,
gradleHomeCacheExcludes=gradleHomeCacheExcludes, arguments=arguments,
gradleHomeCacheExcludes=gradleHomeCacheExcludes,
gradleHomeCacheCleanup=gradleHomeCacheCleanup, arguments=arguments,
generateJobSummary=generateJobSummary, dependencyGraph=dependencyGraph,
artifactRetentionDays=artifactRetentionDays,
gradleHomeCacheStrictMatch=gradleHomeCacheStrictMatch,
workflowJobContext=workflowJobContext, gradleHomeCacheCleanup=gradleHomeCacheCleanup,
githubToken=githubToken, _customInputs=_customInputs, _customVersion=_customVersion)
workflowJobContext=workflowJobContext, githubToken=githubToken,
_customInputs=_customInputs, _customVersion=_customVersion)

@Suppress("SpreadOperator")
override fun toYamlArguments(): LinkedHashMap<String, String> = linkedMapOf(
Expand All @@ -158,12 +167,13 @@ public data class GradleBuildActionV2 private constructor(
cacheOverwriteExisting?.let { "cache-overwrite-existing" to it.toString() },
gradleHomeCacheIncludes?.let { "gradle-home-cache-includes" to it.joinToString("\n") },
gradleHomeCacheExcludes?.let { "gradle-home-cache-excludes" to it.joinToString("\n") },
gradleHomeCacheCleanup?.let { "gradle-home-cache-cleanup" to it.toString() },
arguments?.let { "arguments" to it },
generateJobSummary?.let { "generate-job-summary" to it.toString() },
dependencyGraph?.let { "dependency-graph" to it.stringValue },
artifactRetentionDays?.let { "artifact-retention-days" to it.toString() },
gradleHomeCacheStrictMatch?.let { "gradle-home-cache-strict-match" to it },
workflowJobContext?.let { "workflow-job-context" to it },
gradleHomeCacheCleanup?.let { "gradle-home-cache-cleanup" to it.toString() },
githubToken?.let { "github-token" to it },
*_customInputs.toList().toTypedArray(),
).toTypedArray()
Expand Down

0 comments on commit f76cacb

Please sign in to comment.