diff --git a/.github/workflows/tapioca.yml b/.github/workflows/tapioca.yml index 6583afbab4..19be70f84f 100644 --- a/.github/workflows/tapioca.yml +++ b/.github/workflows/tapioca.yml @@ -40,10 +40,9 @@ jobs: bundle exec srb rbi hidden-definitions git checkout -B tapioca-update - git reset origin/master git add sorbet if ! git diff --no-patch --exit-code HEAD -- sorbet; then - if ! git ls-remote --exit-code --heads origin tapioca-update; then + if ! git ls-remote --exit-code --heads origin tapioca-update >/dev/null; then 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