allow for files changed but not in commit

This commit is contained in:
David Holdeman 2023-07-24 20:54:31 -05:00
parent 993eaa22c7
commit 3dc2727c0f
No known key found for this signature in database
GPG Key ID: DBEE6FCFCC9DD9A6
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ git add boards/*
git reset HEAD *.kicad_pro
git status
OUT=$(git commit -am "[skip actions] Auto-generated board" 2>&1) || echo "commit failed, finding out why"
if echo "$OUT" | grep 'nothing to commit'; then
if echo "$OUT" | grep 'nothing to commit' || echo "$OUT" | grep 'nothing added to commit'; then
echo "headers: looks like nothing to commit"
echo "::set-env name=NOCOMMIT::true"
exit 0