mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-21 15:57:49 +00:00
Merge pull request #550 from ArangoGutierrez/ref_name
Use ref_name on release workflow
This commit is contained in:
commit
6b78c72fec
8
.github/workflows/release.yaml
vendored
8
.github/workflows/release.yaml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user