-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 1.06 KB
/
gradle.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
32
name: 'Gradle Build Action'
description: 'Reusable GitHub Action for performing a gradle build or running a gradle task.'
inputs:
gradle-cache-disabled:
description: 'Caching is enabled by default. You can disable caching for the action using this parameter'
required: false
default: false
gradle-cache-read-only:
description: 'Configure read-only caching for the gradle-build-action'
required: false
default: ${{ github.ref != 'refs/heads/main' }}
gradle-cache-write-only:
description: 'Configure write-only caching for the gradle-build-action'
required: false
default: false
runs:
using: 'composite'
steps:
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: "21"
distribution: "temurin"
- name: Set up Gradle
uses: gradle/gradle-build-action@v2
with:
generate-job-summary: false
cache-disabled: ${{ inputs.gradle-cache-disabled }}
cache-read-only: ${{ inputs.gradle-cache-read-only }}
cache-write-only: ${{ inputs.gradle-cache-write-only }}