mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: run git fetch --tags --force during release (#2495)
This commit is contained in:
+2
-2
@@ -28,12 +28,12 @@ if [[ "${CODER_RELEASE:-}" == *t* ]]; then
|
||||
if [[ "$last_tag" != "$(git describe --always)" ]]; then
|
||||
# make won't exit on $(shell cmd) failures, so we have to kill it :(
|
||||
if [[ "$(ps -o comm= "$PPID" || true)" == *make* ]]; then
|
||||
log "ERROR: version.sh attemped to generate a dev version string when CODER_RELEASE was set"
|
||||
log "ERROR: version.sh: the current commit is not tagged with an annotated tag"
|
||||
kill "$PPID" || true
|
||||
exit 1
|
||||
fi
|
||||
|
||||
error "version.sh attemped to generate a dev version string when CODER_RELEASE was set"
|
||||
error "version.sh: the current commit is not tagged with an annotated tag"
|
||||
fi
|
||||
else
|
||||
version+="-devel+$(git rev-parse --short HEAD)"
|
||||
|
||||
Reference in New Issue
Block a user