-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaction.yml
31 lines (29 loc) · 1.05 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: 'Spring Gradle Build Action'
description: 'Reusable GitHub Action for performing a gradle build or running a gradle task.'
author: 'Spring'
inputs:
java-version:
description: 'Version of the JDK to use to run the Gradle command. Used in the actions/setup-java step.'
required: false
default: '17'
distribution:
description: 'Distribution of the JDK to use to run the Gradle command. Used in the actions/setup-java step.'
required: false
default: 'temurin'
runs:
using: 'composite'
steps:
- name: Set up JDK ${{ inputs.java-version }}
uses: actions/[email protected]
with:
java-version: ${{ inputs.java-version }}
distribution: ${{ inputs.distribution }}
- name: Set up gradle user name
shell: bash
run: |
mkdir -p $HOME/.gradle
echo 'systemProp.user.name=spring-builds+github' >> $HOME/.gradle/gradle.properties
- name: Gradle Wrapper Validation
uses: gradle/actions/[email protected]
- name: Set up Gradle
uses: gradle/actions/[email protected]