From e5d8d2a86d43f214838323dda79e83a86afe6ed7 Mon Sep 17 00:00:00 2001 From: vitaxa Date: Thu, 27 Jan 2022 17:28:42 +0300 Subject: [PATCH] fix empty input params --- .github/workflows/maven-library-deploy.yml | 11 +++++++++++ .github/workflows/maven-thrift-build.yml | 15 +++++++++++++-- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-library-deploy.yml b/.github/workflows/maven-library-deploy.yml index dc0742c..87461a9 100644 --- a/.github/workflows/maven-library-deploy.yml +++ b/.github/workflows/maven-library-deploy.yml @@ -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 diff --git a/.github/workflows/maven-thrift-build.yml b/.github/workflows/maven-thrift-build.yml index edea0de..744ec91 100644 --- a/.github/workflows/maven-thrift-build.yml +++ b/.github/workflows/maven-thrift-build.yml @@ -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: |