Skip to content

Commit

Permalink
fix: build date in version string
Browse files Browse the repository at this point in the history
  • Loading branch information
acaloiaro committed Dec 12, 2024
1 parent e9a602c commit 9ba7917
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ jobs:
[ "$OLD_TAG" == "$NEW_TAG" ] && echo "no version bump" && exit 0
echo default.nix README.md main.go | xargs sed -i "s/$(svu current)/$(svu next)/g"
echo default.nix README.md main.go | xargs sed -i "s/$(svu current --prefix='')/$(svu next --prefix='')/g"
git add default.nix
git add main.go
git add README.md
sed -i "s/BUILD_DATE = \".*\"/BUILD_DATE = \"$(date -Iseconds)\"/g" main.go
git add default.nix main.go README.md
git commit -m "bump release version" --allow-empty
git tag v$NEW_TAG
git tag $NEW_TAG
Expand Down

0 comments on commit 9ba7917

Please sign in to comment.