Workflows: Fix github.ref_name sometimes is empty

pull/4937/head
Meo597 2025-07-25 22:28:56 +08:00
parent eb433d9462
commit 708882fb81
1 changed files with 3 additions and 0 deletions

View File

@ -38,6 +38,9 @@ jobs:
if [[ -z "$SOURCE_TAG" ]]; then
SOURCE_TAG="${{ github.ref_name }}"
fi
if [[ -z "$SOURCE_TAG" ]]; then
SOURCE_TAG="${{ github.event.release.tag_name }}"
fi
if [[ -z "$SOURCE_TAG" ]]; then
echo "Error: Could not determine a valid tag source. Input tag and context tag (github.ref_name) are both empty."