mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 12:48:14 -05:00
fix: tag name
This commit is contained in:
parent
0b6d0977ac
commit
33ec746a54
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
@ -150,9 +150,10 @@ jobs:
|
||||
|
||||
- name: Extract branch name in tag
|
||||
run: |
|
||||
export TAG_NAME=$(echo ${GITHUB_REF#refs/tags/})
|
||||
if [ -z "$TAG_NAME" ]; then
|
||||
export TAG_NAME=$(echo ${GITHUB_HEAD_REF})
|
||||
if [[ $GITHUB_REF == refs/heads/* ]]; then
|
||||
export TAG_NAME=$(echo ${GITHUB_REF#refs/heads/})
|
||||
else
|
||||
export TAG_NAME=$(echo ${GITHUB_REF#refs/tags/})
|
||||
fi
|
||||
echo "tag=$TAG_NAME" >> $GITHUB_OUTPUT
|
||||
id: extract_branch
|
||||
|
Loading…
Reference in New Issue
Block a user