diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index e2ae151..ad213a8 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -5,13 +5,16 @@ name: Maven Publish on: workflow_call: - secrets: - AWS_CA_TOKEN: - required: true + inputs: MVN_SETTINGS_XML: required: true + type: string JAVA_VERSION: required: true + type: string + secrets: + AWS_CA_TOKEN: + required: true DEVOPS_ACCESS_TOKEN: required: true @@ -77,14 +80,14 @@ jobs: if: github.ref != 'refs/heads/feature/T2900-java21' && github.ref != 'refs/heads/feature/T2900-java-21' uses: actions/setup-java@v4 with: - java-version: '${{ secrets.JAVA_VERSION }}' + java-version: '${{ inputs.JAVA_VERSION }}' distribution: 'corretto' - name: Create Maven settings run: | echo -e "$SETTINGS_XML" > ~/.m2/settings.xml env: - SETTINGS_XML: ${{ secrets.MVN_SETTINGS_XML }} + SETTINGS_XML: ${{ inputs.MVN_SETTINGS_XML }} - name: Deploy artifacts and sources run: |