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 e6e766e commit d489261Copy full SHA for d489261
release_tools/version_tag.sh
@@ -39,8 +39,14 @@ if ! git rev-parse HEAD^2 >/dev/null 2>&1 ; then
39
exit 1
40
fi
41
42
-PROJECT_NAME=$(hatch project metadata name)
43
-VERSION_NUMBER=$(hatch version)
+if ! PROJECT_NAME=$(hatch project metadata name) ; then
+ echo "Failed to retrieve project name."
44
+ exit 1
45
+fi
46
+if ! VERSION_NUMBER=$(hatch version) ; then
47
+ echo "Failed to retrieve version number."
48
49
50
TAG_NAME="v$VERSION_NUMBER"
51
52
# Create tag
0 commit comments