We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3f1233 commit 244cd93Copy full SHA for 244cd93
1 file changed
justfile
@@ -86,14 +86,14 @@ doctest:
86
new-version VERSION="":
87
#!/usr/bin/env bash
88
set -xeuo pipefail
89
- VERSION_ARG="{{VERSION}}"
90
- if [ -z "$VERSION_ARG" ]; then
+ VERSION="{{VERSION}}"
+ if [ -z "$VERSION" ]; then
91
# Use calendar versioning by default
92
- VERSION_ARG=$(date "+%Y.%m.%d")
93
- echo "Using calendar version: $VERSION_ARG"
+ VERSION=$(date "+%Y.%m.%d")
+ echo "Using calendar version: $VERSION"
94
fi
95
- echo "Releasing version $VERSION_ARG"
96
- sed -i '' "s/^version = .*/version = \"$VERSION_ARG\"/" pyproject.toml
+ echo "Releasing version $VERSION"
+ sed -i '' "s/^version = .*/version = \"$VERSION\"/" pyproject.toml
97
git commit -am "chore: Prepare release {{VERSION}}" || true
98
git tag "{{VERSION}}"
99
0 commit comments