build: Reset homebrew/core before bumping formula
This commit is contained in:
parent
16ddd6b31d
commit
ba18e1a089
|
@ -198,6 +198,12 @@ jobs:
|
|||
git config --global credential.helper store
|
||||
git config --global user.name "Starship Bot"
|
||||
git config --global user.email "bot@starship.rs"
|
||||
|
||||
cd $(brew --repo homebrew/core)
|
||||
git fetch origin
|
||||
sudo git reset --hard origin/master
|
||||
cd -
|
||||
|
||||
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 }}
|
||||
|
|
Loading…
Reference in New Issue