Merge pull request #550 from ArangoGutierrez/ref_name

Use ref_name on release workflow
This commit is contained in:
Evan Lezar 2024-06-18 11:49:59 +02:00 committed by GitHub
commit 6b78c72fec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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