only:handling Connectors: looks like nothing to commit

This commit is contained in:
rusefillc 2023-12-04 10:15:00 -05:00
parent 70ce51b3f2
commit dd11acec3f
1 changed files with 5 additions and 1 deletions

View File

@ -82,7 +82,11 @@ jobs:
- name: Push Connectors
run: |
git add connectors/*
git commit -am "GHA Connectors Generated"
OUT=$(git commit -am "GHA Connectors Generated" 2>&1) || echo "commit failed, finding out why"
if echo "$OUT" | grep 'nothing to commit'; then
echo "Connectors: looks like nothing to commit"
exit 0
fi
- name: Push
uses: ad-m/github-push-action@master