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 cc99427 commit 5c2301a
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 @@ -9,8 +9,13 @@ fi

ROOT=$(dirname $0)/..

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 5c2301a

Please sign in to comment.