[Oztechan/Global#119] Move Setup Gradle Repo to composite actions #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Setup Gradle Repo | ||
description: "Checks outs the repo and sets up the JDK and Gradle. | ||
inputs: | ||
java-version: | ||
description: 'The JDK version to use' | ||
default: '17' | ||
required: false | ||
java-distribution: | ||
description: 'The JDK distribution to use' | ||
default: 'temurin' | ||
required: false | ||
fetch-depth: | ||
description: 'The depth of commits to fetch' | ||
default: '0' | ||
required: false | ||
submodules: | ||
description: 'Whether to fetch submodules' | ||
default: 'recursive' | ||
required: false | ||
build-scan-publish: | ||
description: 'Whether to publish build scans' | ||
default: 'true' | ||
required: false | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Clone Repo | ||
uses: actions/[email protected] | ||
with: | ||
submodules: ${{ inputs.submodules }} | ||
fetch-depth: ${{ inputs.fetch-depth }} | ||
- name: Set up JDK 17 | ||
uses: actions/[email protected] | ||
with: | ||
java-version: ${{ inputs.java-version }} | ||
distribution: ${{ inputs.java-distribution }} | ||
- name: Setup Gradle | ||
uses: gradle/actions/[email protected] | ||
with: | ||
build-scan-publish: ${{ inputs.build-scan-publish }} | ||
build-scan-terms-of-use-url: "https://gradle.com/help/legal-terms-of-use" | ||
build-scan-terms-of-use-agree: "yes" | ||