Skip to content

Commit a22a5b9

Browse files
committed
chore: fix docker pull version tag in TG notification
Use ${VERSION} (without v prefix) instead of ${TAG_NAME} to match GoReleaser's actual Docker image tags.
1 parent 3fe4fd4 commit a22a5b9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,10 @@ jobs:
246246
if [ -n "$DOCKERHUB_USERNAME" ]; then
247247
DOCKER_IMAGE="${DOCKERHUB_USERNAME}/sub2api"
248248
MESSAGE+="# Docker Hub"$'\n'
249-
MESSAGE+="docker pull ${DOCKER_IMAGE}:${TAG_NAME}"$'\n'
249+
MESSAGE+="docker pull ${DOCKER_IMAGE}:${VERSION}"$'\n'
250250
MESSAGE+="# GitHub Container Registry"$'\n'
251251
fi
252-
MESSAGE+="docker pull ${GHCR_IMAGE}:${TAG_NAME}"$'\n'
252+
MESSAGE+="docker pull ${GHCR_IMAGE}:${VERSION}"$'\n'
253253
MESSAGE+="\`\`\`"$'\n'$'\n'
254254
MESSAGE+="🔗 *相关链接:*"$'\n'
255255
MESSAGE+="• [GitHub Release](https://github.com/${REPO}/releases/tag/${TAG_NAME})"$'\n'

0 commit comments

Comments
 (0)