workflows/tapioca: no HEAD for diff

This commit is contained in:
Dawid Dziurla 2020-08-22 19:36:41 +02:00 committed by GitHub
parent b72ee12e8e
commit 0c94fac28c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ jobs:
bundle exec tapioca sync --exclude json
bundle exec srb rbi hidden-definitions
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)."