ci: Reset brew installation before bump-formula-pr

This commit is contained in:
Matan Kushner 2019-10-15 01:05:51 +09:00
parent 76b47f2f65
commit 4634449354
No known key found for this signature in database
GPG Key ID: 4B98C3A8949CA8A4
1 changed files with 5 additions and 0 deletions

View File

@ -166,6 +166,11 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- run: |
cd $(brew --prefix)
git fetch origin
sudo git reset --hard origin/master
cd -
- run: brew bump-formula-pr --url=https://github.com/starship/starship/archive/$(git describe --tags).tar.gz --message="Automated release pull request using continuous integration." --no-browse -v starship --force
env:
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}