File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 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 '' ;
You can’t perform that action at this time.
0 commit comments