Merge pull request #8446 from Homebrew/dawidd6-patch-1
workflows/tapioca: reset earlier
This commit is contained in:
commit
80093b859b
11
.github/workflows/tapioca.yml
vendored
11
.github/workflows/tapioca.yml
vendored
@ -35,16 +35,17 @@ jobs:
|
||||
run: |
|
||||
cd "$GITHUB_WORKSPACE/Library/Homebrew"
|
||||
|
||||
git fetch origin master
|
||||
git reset --hard origin/master
|
||||
git checkout -B tapioca-update
|
||||
|
||||
# TODO: replace with `brew typecheck`
|
||||
bundle exec tapioca sync --exclude json
|
||||
bundle exec srb rbi hidden-definitions
|
||||
|
||||
git fetch origin master
|
||||
git reset --hard origin/master
|
||||
git checkout -B tapioca-update
|
||||
git add sorbet
|
||||
if ! git diff --no-patch --exit-code HEAD -- sorbet; then
|
||||
if ! git diff --no-patch --exit-code -- sorbet; then
|
||||
if ! git ls-remote --exit-code --heads origin tapioca-update >/dev/null; then
|
||||
git add sorbet
|
||||
git commit -m "sorbet: update RBI files using Tapioca." -m "Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml)."
|
||||
echo "::set-output name=committed::true"
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user