Skip to content

Commit 0ddae31

Browse files
author
liq
committed
add: release workflows
1 parent ed4581e commit 0ddae31

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build-push-web-image.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ jobs:
4545
run: |
4646
if [[ "${GITHUB_REF#refs/heads/}" =~ ^release/ ]]; then
4747
# 假设你想要使用分支名称作为标签
48-
IMAGE_TAG="${GITHUB_REF#refs/heads/}"
49-
echo "image_tag=${IMAGE_TAG}" >> $GITHUB_ENV
50-
echo "Current tag set to: $IMAGE_TAG"
48+
image_tag="${GITHUB_REF#refs/heads/release/}"
49+
echo "image_tag=${image_tag}" >> $GITHUB_ENV
50+
echo "Current tag set to: $image_tag"
5151
fi
5252
5353
- name: Build Image

0 commit comments

Comments
 (0)