fix empty input params

This commit is contained in:
vitaxa 2022-01-27 17:28:42 +03:00
parent e645608831
commit e5d8d2a86d
2 changed files with 24 additions and 2 deletions

View File

@ -2,6 +2,17 @@ name: Maven Deploy Package
on:
workflow_call:
inputs:
java-version:
description: 'Java version'
required: false
default: "15"
type: string
java-distribution:
description: 'Java distribution'
required: false
default: "adopt"
type: string
secrets:
server-username:
required: true

View File

@ -2,6 +2,17 @@ name: Maven Build Artifact
on:
workflow_call:
inputs:
java-version:
description: 'Java version'
required: false
default: "15"
type: string
java-distribution:
description: 'Java distribution'
required: false
default: "adopt"
type: string
jobs:
build:
@ -16,8 +27,8 @@ jobs:
- name: Set up Maven
uses: actions/setup-java@v2
with:
java-version: '15'
distribution: 'adopt'
java-version: ${{ inputs.java-version }}
distribution: ${{ inputs.java-distribution }}
cache: 'maven'
- name: Retrieve commit info
run: |