From ba18e1a0896cdc8e5d9dab297edd3511e0b7913c Mon Sep 17 00:00:00 2001 From: Matan Kushner Date: Fri, 13 Dec 2019 15:09:57 -0500 Subject: [PATCH] build: Reset homebrew/core before bumping formula --- .github/workflows/workflow.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index e6995b12..63dcbcfc 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -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 }}