Fix command to fetch latest stable version (#11782) (#11787)

This commit is contained in:
Ye Ding 2022-12-17 00:13:54 +08:00 committed by GitHub
parent 856102cba8
commit e627d3c6a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,4 +6,4 @@ echo STABLE_GIT_COMMIT "$(git rev-parse HEAD)"
echo DATE "$(date --rfc-3339=seconds --utc)" echo DATE "$(date --rfc-3339=seconds --utc)"
echo DATE_UNIX "$(date --utc +%s)" echo DATE_UNIX "$(date --utc +%s)"
echo DOCKER_TAG "$(git rev-parse --abbrev-ref HEAD)-$(git rev-parse --short=6 HEAD)" echo DOCKER_TAG "$(git rev-parse --abbrev-ref HEAD)-$(git rev-parse --short=6 HEAD)"
echo STABLE_GIT_TAG "$(git describe --tags "$(git rev-list --tags --max-count=1)")" echo STABLE_GIT_TAG "$(git describe --tags --abbrev=0)"