Skip to content

Commit

Permalink
chore: 修复编译脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
rehiy committed Dec 15, 2023
1 parent 9263f30 commit 12bb662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ git log $prev_tag..$last_tag --pretty=format:"%s" | grep -v "^release" | sed 's/
version=`echo $last_tag | sed 's/^v//'`
sed -i "s/^const Version = \".*\"/const Version = \"$version\"/" cmd/args/build.go

build_version=$((`grep -oP 'BuildVersion = "\K\d+' cmd/args/build.go` + ${GITHUB_RUN_NUMBER:-0}))
build_version=$((`grep -oP 'BuildVersion = "\K\d+' cmd/args/build.go` + $RUN_NUMBER))
sed -i "s/^const BuildVersion = \".*\"/const BuildVersion = \"$build_version\"/" cmd/args/build.go

echo "build info - tag: $last_tag, version: $version, build: $build_version"
Expand Down

0 comments on commit 12bb662

Please sign in to comment.