-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathaction.yaml
38 lines (36 loc) · 959 Bytes
/
action.yaml
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
33
34
35
36
37
38
name: Composite java action
description: Setup JDK and maven
inputs:
distribution:
description: Which JDK to use
default: temurin
java-version:
description: Major version of JDK
required: true
maven-version:
description: Version of Maven to use
required: true
default: 3.9.5
overwrite-settings:
description: Overwrite settings.xml
required: false
default: false
cache:
description: Cache java artifacts
required: false
default: false
runs:
using: "composite"
steps:
- name: Setup java
if: ${{ inputs.cache }}
uses: actions/[email protected]
with:
distribution: ${{ inputs.distribution }}
overwrite-settings: ${{ inputs.overwrite-settings }}
java-version: ${{ inputs.java-version }}
cache: ${{ inputs.cache == 'true' && 'maven' || '' }}
- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: ${{ inputs.maven-version }}