Fix publish.yml da koristi ovo kao inpute, ne kao secrete
This commit is contained in:
@@ -5,13 +5,16 @@ name: Maven Publish
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
secrets:
|
inputs:
|
||||||
AWS_CA_TOKEN:
|
|
||||||
required: true
|
|
||||||
MVN_SETTINGS_XML:
|
MVN_SETTINGS_XML:
|
||||||
required: true
|
required: true
|
||||||
|
type: string
|
||||||
JAVA_VERSION:
|
JAVA_VERSION:
|
||||||
required: true
|
required: true
|
||||||
|
type: string
|
||||||
|
secrets:
|
||||||
|
AWS_CA_TOKEN:
|
||||||
|
required: true
|
||||||
DEVOPS_ACCESS_TOKEN:
|
DEVOPS_ACCESS_TOKEN:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
@@ -77,14 +80,14 @@ jobs:
|
|||||||
if: github.ref != 'refs/heads/feature/T2900-java21' && github.ref != 'refs/heads/feature/T2900-java-21'
|
if: github.ref != 'refs/heads/feature/T2900-java21' && github.ref != 'refs/heads/feature/T2900-java-21'
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
java-version: '${{ secrets.JAVA_VERSION }}'
|
java-version: '${{ inputs.JAVA_VERSION }}'
|
||||||
distribution: 'corretto'
|
distribution: 'corretto'
|
||||||
|
|
||||||
- name: Create Maven settings
|
- name: Create Maven settings
|
||||||
run: |
|
run: |
|
||||||
echo -e "$SETTINGS_XML" > ~/.m2/settings.xml
|
echo -e "$SETTINGS_XML" > ~/.m2/settings.xml
|
||||||
env:
|
env:
|
||||||
SETTINGS_XML: ${{ secrets.MVN_SETTINGS_XML }}
|
SETTINGS_XML: ${{ inputs.MVN_SETTINGS_XML }}
|
||||||
|
|
||||||
- name: Deploy artifacts and sources
|
- name: Deploy artifacts and sources
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user