workflows/tapioca: add after diff

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

View File

@ -43,10 +43,9 @@ jobs:
bundle exec tapioca sync --exclude json
bundle exec srb rbi hidden-definitions
git add sorbet
if ! git diff --no-patch --exit-code HEAD -- 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