Skip to content

Commit 664cb2b

Browse files
committed
Update release script to fail on version mismatch
1 parent dd356a3 commit 664cb2b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/release

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ function abort {
1313
[ -z "${GITHUB_REPO}" ] && abort "Missing GITHUB_REPO env variable."
1414

1515
VERSION=$(grep "version" lua_cliargs-*.rockspec | cut -d' ' -f3 | sed 's/"//g')
16+
SRC_VERSION=$(grep "_VERSION" src/cliargs.lua | sed -e 's/.*=//' -e 's/.* //' -e 's/"//g')
17+
18+
[ "${VERSION}" != "${SRC_VERSION}" ] && abort "Verion in rockspec does not match source"
1619

1720
# Publish to GitHub
1821
JSON_PAYLOAD=$(

0 commit comments

Comments
 (0)