Use steps.build-and-publish.outputs.version instead of github.ref_name

Closes gh-42808
This commit is contained in:
Moritz Halbritter
2024-10-24 08:38:19 +02:00
parent 38d534807a
commit 76cfc57b35
2 changed files with 2 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ jobs:
with:
artifact-properties: |
/**/spring-boot-docs-*.zip::zip.type=docs,zip.deployed=false
build-name: ${{ vars.COMMERCIAL && format('spring-boot-commercial-{0}', github.ref_name) || format('spring-boot-{0}', github.ref_name) }}
build-name: ${{ vars.COMMERCIAL && format('spring-boot-commercial-{0}', steps.build-and-publish.outputs.version) || format('spring-boot-{0}', steps.build-and-publish.outputs.version) }}
folder: 'deployment-repository'
password: ${{ vars.COMMERCIAL && secrets.COMMERCIAL_ARTIFACTORY_PASSWORD || secrets.ARTIFACTORY_PASSWORD }}
project: ${{ vars.COMMERCIAL && 'spring' }}

View File

@@ -29,7 +29,7 @@ jobs:
with:
artifact-properties: |
/**/spring-boot-docs-*.zip::zip.type=docs,zip.deployed=false
build-name: ${{ vars.COMMERCIAL && format('spring-boot-commercial-{0}', github.ref_name) || format('spring-boot-{0}', github.ref_name) }}
build-name: ${{ vars.COMMERCIAL && format('spring-boot-commercial-{0}', steps.build-and-publish.outputs.version) || format('spring-boot-{0}', steps.build-and-publish.outputs.version) }}
folder: 'deployment-repository'
password: ${{ vars.COMMERCIAL && secrets.COMMERCIAL_ARTIFACTORY_PASSWORD || secrets.ARTIFACTORY_PASSWORD }}
project: ${{ vars.COMMERCIAL && 'spring' }}