Fix Rituals workflow validating commits have not been made (#3473)

This commit is contained in:
Barret Schloerke
2021-08-02 22:19:31 -04:00
committed by GitHub
parent 1b3ed88bd1
commit 7600770a6e

View File

@@ -159,7 +159,7 @@ jobs:
if: github.event_name == 'push'
run: |
# Can't push to a protected branch
if [ -z "`git cherry origin/master`"]; then
if [ -n "`git cherry origin/master`"]; then
echo "Un-pushed commits:"
git cherry -v origin/master
echo "\nCan not push to a protected branch. Exiting"