Use ref_name on release workflow

Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
This commit is contained in:
Carlos Eduardo Arango Gutierrez 2024-06-17 16:56:39 +02:00
parent f2eb4ea9ba
commit a3223f32e0
No known key found for this signature in database
GPG Key ID: 42D9CB42F300A852

View File

@ -33,12 +33,12 @@ jobs:
REPO: ${{ github.event.repository.name }}
run: |
GH_EXTRA_ARGS=""
if [[ ${{ github.ref }} == *-rc.* ]]; then
if [[ ${{ github.ref_name }} == *-rc.* ]]; then
GH_EXTRA_ARGS="--prerelease"
fi
gh release create ${{ github.ref }} \
gh release create ${{ github.ref_name }} \
--draft \
-t "${{ github.ref }}" \
-t "${{ github.ref_name }}" \
-R $OWNER/$REPO \
--verify-tag \
$GH_EXTRA_ARGS
@ -49,4 +49,4 @@ jobs:
OWNER: ${{ github.repository_owner }}
REPO: ${{ github.event.repository.name }}
run: |
gh release upload ${{ github.ref }} CHANGELOG.md -R $OWNER/$REPO
gh release upload ${{ github.ref_name }} CHANGELOG.md -R $OWNER/$REPO