mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-25 16:42:34 +00:00
Place Java setup in re-usable workflow file (#17541)
Co-authored-by: Stian Thorgersen <stianst@gmail.com>
This commit is contained in:
22
.github/actions/java-setup/action.yml
vendored
Normal file
22
.github/actions/java-setup/action.yml
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
name: Setup Java
|
||||
description: Sets up Java.
|
||||
|
||||
inputs:
|
||||
distribution:
|
||||
description: Java distribution.
|
||||
required: false
|
||||
default: temurin
|
||||
java-version:
|
||||
description: The Java version that is going to be set up.
|
||||
required: false
|
||||
default: "17"
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- id: setup-java
|
||||
name: Setup Java
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: ${{ inputs.distribution }}
|
||||
java-version: ${{ inputs.java-version }}
|
||||
Reference in New Issue
Block a user