From 45f7d53cce4edb8315680edea03bc672e4a45420 Mon Sep 17 00:00:00 2001 From: daz Date: Thu, 25 Jan 2024 13:04:40 -0700 Subject: [PATCH] Try delegating to gradle/actions/setup-gradle --- action.yml | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index da2e0f08..de07cdaf 100644 --- a/action.yml +++ b/action.yml @@ -141,10 +141,36 @@ outputs: gradle-version: description: Version of Gradle that was setup by the action + runs: - using: 'node20' - main: 'dist/main/index.js' - post: 'dist/post/index.js' + using: "composite" + steps: + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3-beta + with: + gradle-version: ${{ inputs.gradle-version }} + cache-disabled: ${{ inputs.cache-disabled }} + cache-read-only: ${{ inputs.cache-read-only }} + cache-write-only: ${{ inputs.cache-write-only }} + cache-overwrite-existing: ${{ inputs.cache-overwrite-existing }} + cache-encryption-key: ${{ inputs.cache-encryption-key }} + gradle-home-cache-includes: ${{ inputs.gradle-home-cache-includes }} + gradle-home-cache-excludes: ${{ inputs.gradle-home-cache-excludes }} + gradle-home-cache-cleanup: ${{ inputs.gradle-home-cache-cleanup }} + add-job-summary: ${{ inputs.add-job-summary }} + add-job-summary-as-pr-comment: ${{ inputs.add-job-summary-as-pr-comment }} + dependency-graph: ${{ inputs.dependency-graph }} + dependency-graph-continue-on-failure: ${{ inputs.dependency-graph-continue-on-failure }} + artifact-retention-days: ${{ inputs.artifact-retention-days }} + build-scan-publish: ${{ inputs.build-scan-publish }} + build-scan-terms-of-service-url: ${{ inputs.build-scan-terms-of-service-url }} + build-scan-terms-of-service-agree: ${{ inputs.build-scan-terms-of-service-agree }} + arguments: ${{ inputs.arguments }} + build-root-directory: ${{ inputs.build-root-directory }} + generate-job-summary: ${{ inputs.generate-job-summary }} + gradle-home-cache-strict-match: ${{ inputs.gradle-home-cache-strict-match }} + workflow-job-context: ${{ inputs.workflow-job-context }} + github-token: ${{ inputs.github-token }} branding: icon: 'box'