Fix publish.yml da koristi ovo kao inpute, ne kao secrete

This commit is contained in:
2026-09-12 00:11:02 +02:00
parent 705e46d5c4
commit ef359f5e57
+8 -5
View File
@@ -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: |