We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c640e1f commit 730fbd5Copy full SHA for 730fbd5
verify-version.sh
@@ -2,16 +2,16 @@
2
3
set -e
4
5
-tag=${GITHUB_REF}
+tag=$(git describe --tags --abbrev=0 --exact-match)
6
version=$(poetry version --short)
7
8
-echo "GITHUB_REF = ${tag}"
+echo "Current git tag = ${tag}"
9
echo "Project version = ${version}"
10
11
if [ "${tag}" == "v${version}" ]; then
12
- echo "GitHub ref matches project version."
+ echo "Git tag matches project version"
13
else
14
- echo "GitHub ref does not match project version."
+ echo "Git tag does not match project version"
15
exit 1
16
fi
17
0 commit comments