pipeline fix
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2026-02-11 11:58:47 +11:00
parent 6a8b4bed28
commit 6053207034

View File

@@ -12,9 +12,9 @@ steps:
- name: go-build
image: cache.coadcorp.com/library/golang
commands:
- XTEVE_VERSION="$(awk '/^#### /{print $2; exit}' changelog-beta.md)"
- XTEVE_VERSION="$(head -n 1 changelog-beta.md | cut -d\" \" -f2)"
- XTEVE_VERSION="${XTEVE_VERSION%-beta}"
- SOURCE_VERSION="$(sed -nE 's/^(const|var) Version = \"([^\"]+)\"/\\2/p' xteve.go | head -n1)"
- SOURCE_VERSION="$(grep -m1 \"Version = \" xteve.go | cut -d\"\\\"\" -f2)"
- test -n "${XTEVE_VERSION}" || (echo "Could not parse version from changelog-beta.md" && exit 1)
- test -n "${SOURCE_VERSION}" || (echo "Could not parse source version from xteve.go" && exit 1)
- 'test "${SOURCE_VERSION}" = "${XTEVE_VERSION}" || (echo "Version mismatch: changelog=${XTEVE_VERSION} source=${SOURCE_VERSION}" && exit 1)'