mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 08:18:32 +00:00
Use ref_name on release workflow
Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
This commit is contained in:
parent
f2eb4ea9ba
commit
a3223f32e0
8
.github/workflows/release.yaml
vendored
8
.github/workflows/release.yaml
vendored
@ -33,12 +33,12 @@ jobs:
|
|||||||
REPO: ${{ github.event.repository.name }}
|
REPO: ${{ github.event.repository.name }}
|
||||||
run: |
|
run: |
|
||||||
GH_EXTRA_ARGS=""
|
GH_EXTRA_ARGS=""
|
||||||
if [[ ${{ github.ref }} == *-rc.* ]]; then
|
if [[ ${{ github.ref_name }} == *-rc.* ]]; then
|
||||||
GH_EXTRA_ARGS="--prerelease"
|
GH_EXTRA_ARGS="--prerelease"
|
||||||
fi
|
fi
|
||||||
gh release create ${{ github.ref }} \
|
gh release create ${{ github.ref_name }} \
|
||||||
--draft \
|
--draft \
|
||||||
-t "${{ github.ref }}" \
|
-t "${{ github.ref_name }}" \
|
||||||
-R $OWNER/$REPO \
|
-R $OWNER/$REPO \
|
||||||
--verify-tag \
|
--verify-tag \
|
||||||
$GH_EXTRA_ARGS
|
$GH_EXTRA_ARGS
|
||||||
@ -49,4 +49,4 @@ jobs:
|
|||||||
OWNER: ${{ github.repository_owner }}
|
OWNER: ${{ github.repository_owner }}
|
||||||
REPO: ${{ github.event.repository.name }}
|
REPO: ${{ github.event.repository.name }}
|
||||||
run: |
|
run: |
|
||||||
gh release upload ${{ github.ref }} CHANGELOG.md -R $OWNER/$REPO
|
gh release upload ${{ github.ref_name }} CHANGELOG.md -R $OWNER/$REPO
|
||||||
|
Loading…
Reference in New Issue
Block a user