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 runs-on: macos-latest
steps: steps:
- uses: actions/checkout@v1 - 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 - 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: env:
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }} HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}