fix version on homebrew commit
This commit is contained in:
parent
95f808bb6d
commit
651fdfc50f
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue