Skip to content

Commit

Permalink
Add auto gofmt when release
Browse files Browse the repository at this point in the history
  • Loading branch information
yuuki committed Feb 25, 2016
1 parent efc9c25 commit 830039d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion script/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@ if [ -z "$1" ]; then
exit 1
fi

new_version=$(gobump "$1" -w -v cmd | jq -r '.[]')
# gofmt
gofmt -s -w .
git add ./*.go
git commit -m "gofmt" || true # ignore no changes error

# gobump
new_version=$(gobump "$1" -w -v cmd | jq -r '.[]')
git add ./*.go
git commit -m "Bump version $new_version"
git push origin master
Expand Down

0 comments on commit 830039d

Please sign in to comment.