We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed4581e commit 0ddae31Copy full SHA for 0ddae31
.github/workflows/build-push-web-image.yml
@@ -45,9 +45,9 @@ jobs:
45
run: |
46
if [[ "${GITHUB_REF#refs/heads/}" =~ ^release/ ]]; then
47
# 假设你想要使用分支名称作为标签
48
- IMAGE_TAG="${GITHUB_REF#refs/heads/}"
49
- echo "image_tag=${IMAGE_TAG}" >> $GITHUB_ENV
50
- echo "Current tag set to: $IMAGE_TAG"
+ image_tag="${GITHUB_REF#refs/heads/release/}"
+ echo "image_tag=${image_tag}" >> $GITHUB_ENV
+ echo "Current tag set to: $image_tag"
51
fi
52
53
- name: Build Image
0 commit comments