From 66025f28894300e3c1ae01d11133b05db03ca59b Mon Sep 17 00:00:00 2001 From: Meow <197331664+Meo597@users.noreply.github.com> Date: Fri, 25 Jul 2025 22:47:12 +0800 Subject: [PATCH] Workflows: Fix github.ref_name sometimes is empty when building Docker images (#4937) From https://github.com/XTLS/Xray-core/pull/4809 --- .github/workflows/docker.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 9ec5b9d9..35b8e7be 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -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."