.github/main.workflow.sh: exit cleanly on no changes (#61052)

This commit is contained in:
Mike McQuaid 2019-03-28 21:06:39 +00:00 committed by GitHub
parent fbe1a3e66b
commit 455a65b713
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -37,5 +37,6 @@ ruby -e "load Gem.bin_path('rake', 'rake')" cask
# commit and push generated files
git add _data/cask api/cask cask
git commit -m 'cask: update from Homebrew/cask push' _data/cask api/cask cask
git diff --exit-code HEAD -- _data/cask api/cask cask && exit 0
git commit -m 'cask: update from Homebrew/homebrew-cask push' _data/cask api/cask cask
git push