diff --git a/bin/gha-commit.sh b/bin/gha-commit.sh index cb4b369..44aa3fa 100644 --- a/bin/gha-commit.sh +++ b/bin/gha-commit.sh @@ -1,9 +1,14 @@ #!/bin/bash git config --local user.email "action@github.com" git config --local user.name "GitHub create-board Action" +echo "Status 1/3" +git status +git reset HEAD *.kicad_pro +echo "Status 2/3" +git status git add gerber/* git add boards/* -git reset HEAD *.kicad_pro +echo "Status 3/3" 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' || echo "$OUT" | grep 'nothing added to commit'; then