fix version on homebrew commit

This commit is contained in:
David Newhall II 2019-07-07 19:54:16 -07:00
parent 95f808bb6d
commit 651fdfc50f
1 changed files with 2 additions and 3 deletions

View File

@ -5,8 +5,7 @@
# Run by Travis-CI when a new release is created on GitHub. # Run by Travis-CI when a new release is created on GitHub.
make unifi-poller.rb make unifi-poller.rb
VERSION=$(grep -E '^\s*version\s*"' unifi-poller.rb | cut -d\" -f 2) VERSION=$(grep -E '^\s+url\s+"' unifi-poller.rb | cut -d/ -f7 | cut -d. -f1,2,3)
rm -rf homebrew-mugs rm -rf homebrew-mugs
git config --global user.email "unifi@auto.releaser" git config --global user.email "unifi@auto.releaser"
git config --global user.name "unifi-auto-releaser" git config --global user.name "unifi-auto-releaser"
@ -14,6 +13,6 @@ git clone git@github.com:golift/homebrew-mugs.git
cp unifi-poller.rb homebrew-mugs/Formula cp unifi-poller.rb homebrew-mugs/Formula
pushd homebrew-mugs pushd homebrew-mugs
git commit -m "Update unifi-poller on Release: v${VERSION}" Formula/unifi-poller.rb git commit -m "Update unifi-poller on Release: ${VERSION}" Formula/unifi-poller.rb
git push git push
popd popd