Skip to content

Commit 28c4e65

Browse files
committed
bugfix tag name
1 parent 0c15d41 commit 28c4e65

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/publish_docker.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ jobs:
4646
SHOULD_BUILD_PUSH=false
4747
4848
# Determine tag and build indicator based on context
49-
if [[ "${{ github.ref_type }}" == "branch" ]]; then
50-
case "${{ github.ref_name }}" in
49+
if [[ "$GITHUB_REF_TYPE" == "branch" ]]; then
50+
case "$GITHUB_REF_NAME" in
5151
"main")
5252
TAG=main
5353
SHOULD_BUILD_PUSH=true
@@ -64,9 +64,9 @@ jobs:
6464
TAG=${{ github.ref_name }}
6565
;;
6666
esac
67-
elif [[ "${{ github.ref_type }}" == "tag" ]]; then
67+
elif [[ "$GITHUB_REF_TYPE" == "tag" ]]; then
6868
TAG=${{ github.ref_name }}
69-
if [[ "${{ github.ref_name }}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
69+
if [[ "$GITHUB_REF_NAME" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
7070
SHOULD_BUILD_PUSH=true
7171
fi
7272
fi

0 commit comments

Comments
 (0)