Skip to content

Commit 244cd93

Browse files
author
Gunther Klessinger
committed
chore: Prepare release
1 parent e3f1233 commit 244cd93

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

justfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,14 @@ doctest:
8686
new-version VERSION="":
8787
#!/usr/bin/env bash
8888
set -xeuo pipefail
89-
VERSION_ARG="{{VERSION}}"
90-
if [ -z "$VERSION_ARG" ]; then
89+
VERSION="{{VERSION}}"
90+
if [ -z "$VERSION" ]; then
9191
# Use calendar versioning by default
92-
VERSION_ARG=$(date "+%Y.%m.%d")
93-
echo "Using calendar version: $VERSION_ARG"
92+
VERSION=$(date "+%Y.%m.%d")
93+
echo "Using calendar version: $VERSION"
9494
fi
95-
echo "Releasing version $VERSION_ARG"
96-
sed -i '' "s/^version = .*/version = \"$VERSION_ARG\"/" pyproject.toml
95+
echo "Releasing version $VERSION"
96+
sed -i '' "s/^version = .*/version = \"$VERSION\"/" pyproject.toml
9797
git commit -am "chore: Prepare release {{VERSION}}" || true
9898
git tag "{{VERSION}}"
9999

0 commit comments

Comments
 (0)