fix: tag name
This commit is contained in:
parent
0b6d0977ac
commit
33ec746a54
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@ -150,9 +150,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Extract branch name in tag
|
- name: Extract branch name in tag
|
||||||
run: |
|
run: |
|
||||||
|
if [[ $GITHUB_REF == refs/heads/* ]]; then
|
||||||
|
export TAG_NAME=$(echo ${GITHUB_REF#refs/heads/})
|
||||||
|
else
|
||||||
export TAG_NAME=$(echo ${GITHUB_REF#refs/tags/})
|
export TAG_NAME=$(echo ${GITHUB_REF#refs/tags/})
|
||||||
if [ -z "$TAG_NAME" ]; then
|
|
||||||
export TAG_NAME=$(echo ${GITHUB_HEAD_REF})
|
|
||||||
fi
|
fi
|
||||||
echo "tag=$TAG_NAME" >> $GITHUB_OUTPUT
|
echo "tag=$TAG_NAME" >> $GITHUB_OUTPUT
|
||||||
id: extract_branch
|
id: extract_branch
|
||||||
|
Loading…
Reference in New Issue
Block a user