Skip to content

Commit 11a7087

Browse files
committed
Also ensure RELEASE has the right value
1 parent 88c5c4c commit 11a7087

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tag_and_release.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ create_tag () {
1818
exit 1
1919
fi
2020

21+
RELEASE=$(cat RELEASE)
22+
23+
if [[ "$RELEASE" == "$VERSION" ]]; then
24+
echo "Release also matches package version: $VERSION"
25+
else
26+
echo "[ERROR] Version mismatch. User request: '$VERSION' while RELEASE is: '$RELEASE'"
27+
fi
28+
2129
echo "Creating tag"
2230
git tag -a "$VERSION" -m "Psij $VERSION"
2331

0 commit comments

Comments
 (0)