Skip to content

Commit

Permalink
fix for version
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWoolfenden committed Mar 6, 2023
1 parent b0f2ba9 commit 04026c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions set-version.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh
echo "Updating version file with new tag: $GORELEASER_CURRENT_TAG"
latesttag=$(git describe --tags)
echo "Updating version file with new tag: $latesttag"
echo "package pike" > src/version.go
echo "" >> src/version.go
echo "const Version = \"$GORELEASER_CURRENT_TAG\"" >> src/version.go
echo "const Version = \"$latesttag\"" >> src/version.go

0 comments on commit 04026c7

Please sign in to comment.