Skip to content

Commit 5978ef6

Browse files
committed
fix: prepare-release not bumping version in default.nix
1 parent 9b1f2d0 commit 5978ef6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

flake.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@
4949
exec = ''
5050
git config --global user.email 'actions@github.com'
5151
git config --global user.name 'Github Actions'
52-
OLD_TAG=$(svu current)
53-
NEW_TAG=$(svu next)
52+
OLD_TAG=$(svu current | sed 's/^v//g')
53+
NEW_TAG=$(svu next | sed 's/^v//g')
5454
[ "$OLD_TAG" == "$NEW_TAG" ] && echo "no version bump" && exit 0
55-
echo default.nix README.md | xargs sed -i "s/$(svu current)/$(svu next)/g"
55+
echo default.nix README.md | xargs sed -i "s/$OLD_TAG/$NEW_TAG/g"
5656
go mod vendor
5757
sed -i "s|vendorHash = \".*\"|vendorHash = \"$(nix hash path ./vendor)\"|g" default.nix
5858
git add default.nix main.go README.md
5959
git commit -m "bump release version" --allow-empty
60-
git tag $NEW_TAG
60+
git tag v$NEW_TAG
6161
git push
6262
git push --tags
6363
'';

0 commit comments

Comments
 (0)