Skip to content

Commit e25d31b

Browse files
committed
try again
1 parent 28c4e65 commit e25d31b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/publish_docker.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,18 @@ jobs:
4545
TAG=latest
4646
SHOULD_BUILD_PUSH=false
4747
48+
# Extract ref type and name
49+
if [[ "$GITHUB_REF" == refs/heads/* ]]; then
50+
GITHUB_REF_TYPE="branch"
51+
GITHUB_REF_NAME="${GITHUB_REF#refs/heads/}"
52+
elif [[ "$GITHUB_REF" == refs/tags/* ]]; then
53+
GITHUB_REF_TYPE="tag"
54+
GITHUB_REF_NAME="${GITHUB_REF#refs/tags/}"
55+
else
56+
GITHUB_REF_TYPE=""
57+
GITHUB_REF_NAME=""
58+
fi
59+
4860
# Determine tag and build indicator based on context
4961
if [[ "$GITHUB_REF_TYPE" == "branch" ]]; then
5062
case "$GITHUB_REF_NAME" in

0 commit comments

Comments
 (0)