From 4f721588cbf1433008ad28f0c210a3a5f508b45e Mon Sep 17 00:00:00 2001 From: David Holdeman Date: Wed, 12 Jul 2023 23:00:02 -0500 Subject: [PATCH] reset kicad_pro file --- bin/gha-commit.sh | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/bin/gha-commit.sh b/bin/gha-commit.sh index a92beb6..799b821 100644 --- a/bin/gha-commit.sh +++ b/bin/gha-commit.sh @@ -1,19 +1,19 @@ #!/bin/bash - - git config --local user.email "action@github.com" - git config --local user.name "GitHub create-board Action" - git add boards/* - 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 - echo "headers: looks like nothing to commit" - echo "::set-env name=NOCOMMIT::true" - exit 0 - elif echo "$OUT" | grep 'changed'; then - echo "headers: looks like something has changed" - exit 0 - else - echo "headers: looks like something unexpected" - exit 1 - fi +git config --local user.email "action@github.com" +git config --local user.name "GitHub create-board Action" +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 + echo "headers: looks like nothing to commit" + echo "::set-env name=NOCOMMIT::true" + exit 0 +elif echo "$OUT" | grep 'changed'; then + echo "headers: looks like something has changed" + exit 0 +else + echo "headers: looks like something unexpected" + exit 1 +fi