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

Commit 2a8bfcf

Browse files
committed
Delegate action implementation to gradle/actions/setup-gradle
From v3 onwards, the `gradle-build-action` will be soft deprecated in preference of `gradle/actions/setup-gradle`, which is a drop-in replacement. Version numbers for these 2 actions will remain in sync. Workflows that use `gradle/gradle-build-action` will transparently delegate to `gradle/actions/setup-gradle`. At a later date, a deprecation warning will be added to `gradle/gradle-build-action`, encouraging users to migrate. All of the repository sources have been migrated to the `gradle/actions` repository, and `gradle/actions/setup-gradle` has been released with `v3.0.0-beta.6`. Going forward, releases will be first performed for `gradle/actions/setup-gradle`, with a parallel release of `gradle/gradle-build-action` soon afterward. Releasing as `gradle/gradle-build-action@v3` will allow dependabot to encourage users to upgrade from `v2`. The deprecation warning (to be added later) will encourage users to migrate to `gradle/actions/setup-gradle`.
1 parent e1ada08 commit 2a8bfcf

File tree

1 file changed

+32
-3
lines changed

1 file changed

+32
-3
lines changed

action.yml

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,44 @@ inputs:
136136
outputs:
137137
build-scan-url:
138138
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.
139+
value: ${{ steps.setup-gradle.outputs.build-scan-url }}
139140
dependency-graph-file:
140141
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.
142+
value: ${{ steps.setup-gradle.outputs.dependency-graph-file }}
141143
gradle-version:
142144
description: Version of Gradle that was setup by the action
145+
value: ${{ steps.setup-gradle.outputs.gradle-version }}
143146

144147
runs:
145-
using: 'node20'
146-
main: 'dist/main/index.js'
147-
post: 'dist/post/index.js'
148+
using: "composite"
149+
steps:
150+
- name: Setup Gradle
151+
id: setup-gradle
152+
uses: gradle/actions/[email protected]
153+
with:
154+
gradle-version: ${{ inputs.gradle-version }}
155+
cache-disabled: ${{ inputs.cache-disabled }}
156+
cache-read-only: ${{ inputs.cache-read-only }}
157+
cache-write-only: ${{ inputs.cache-write-only }}
158+
cache-overwrite-existing: ${{ inputs.cache-overwrite-existing }}
159+
cache-encryption-key: ${{ inputs.cache-encryption-key }}
160+
gradle-home-cache-includes: ${{ inputs.gradle-home-cache-includes }}
161+
gradle-home-cache-excludes: ${{ inputs.gradle-home-cache-excludes }}
162+
gradle-home-cache-cleanup: ${{ inputs.gradle-home-cache-cleanup }}
163+
add-job-summary: ${{ inputs.add-job-summary }}
164+
add-job-summary-as-pr-comment: ${{ inputs.add-job-summary-as-pr-comment }}
165+
dependency-graph: ${{ inputs.dependency-graph }}
166+
dependency-graph-continue-on-failure: ${{ inputs.dependency-graph-continue-on-failure }}
167+
artifact-retention-days: ${{ inputs.artifact-retention-days }}
168+
build-scan-publish: ${{ inputs.build-scan-publish }}
169+
build-scan-terms-of-service-url: ${{ inputs.build-scan-terms-of-service-url }}
170+
build-scan-terms-of-service-agree: ${{ inputs.build-scan-terms-of-service-agree }}
171+
arguments: ${{ inputs.arguments }}
172+
build-root-directory: ${{ inputs.build-root-directory }}
173+
generate-job-summary: ${{ inputs.generate-job-summary }}
174+
gradle-home-cache-strict-match: ${{ inputs.gradle-home-cache-strict-match }}
175+
workflow-job-context: ${{ inputs.workflow-job-context }}
176+
github-token: ${{ inputs.github-token }}
148177

149178
branding:
150179
icon: 'box'

0 commit comments

Comments
 (0)