mirror of
https://github.com/acaloiaro/ess
synced 2026-07-21 18:29:08 +00:00
fix: prepare-release not bumping version in default.nix
This commit is contained in:
parent
9b1f2d023e
commit
5978ef6947
1 changed files with 4 additions and 4 deletions
|
|
@ -49,15 +49,15 @@
|
|||
exec = ''
|
||||
git config --global user.email 'actions@github.com'
|
||||
git config --global user.name 'Github Actions'
|
||||
OLD_TAG=$(svu current)
|
||||
NEW_TAG=$(svu next)
|
||||
OLD_TAG=$(svu current | sed 's/^v//g')
|
||||
NEW_TAG=$(svu next | sed 's/^v//g')
|
||||
[ "$OLD_TAG" == "$NEW_TAG" ] && echo "no version bump" && exit 0
|
||||
echo default.nix README.md | xargs sed -i "s/$(svu current)/$(svu next)/g"
|
||||
echo default.nix README.md | xargs sed -i "s/$OLD_TAG/$NEW_TAG/g"
|
||||
go mod vendor
|
||||
sed -i "s|vendorHash = \".*\"|vendorHash = \"$(nix hash path ./vendor)\"|g" default.nix
|
||||
git add default.nix main.go README.md
|
||||
git commit -m "bump release version" --allow-empty
|
||||
git tag $NEW_TAG
|
||||
git tag v$NEW_TAG
|
||||
git push
|
||||
git push --tags
|
||||
'';
|
||||
|
|
|
|||
Loading…
Reference in a new issue