trim refs/tags/ for short tag names

This commit is contained in:
Earl Warren 2023-03-31 00:36:06 +02:00
parent b818607d61
commit 12233a8d78
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -46,6 +46,9 @@ runs:
export TAG="${{ inputs.tag }}"
if test -z "$TAG"; then
export TAG="${{ github.ref_name }}"
# until https://code.forgejo.org/forgejo/runner/issues/9 is fixed
# trim refs/tags/
TAG=${TAG##refs/tags/}
fi
export TOKEN="${{ inputs.token }}"
if test -z "$TOKEN"; then