reset kicad_pro file
This commit is contained in:
parent
dd391a7e94
commit
4f721588cb
|
@ -1,19 +1,19 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
git config --local user.email "action@github.com"
|
||||||
git config --local user.email "action@github.com"
|
git config --local user.name "GitHub create-board Action"
|
||||||
git config --local user.name "GitHub create-board Action"
|
git add boards/*
|
||||||
git add boards/*
|
git reset HEAD *.kicad_pro
|
||||||
git status
|
git status
|
||||||
OUT=$(git commit -am "[skip actions] Auto-generated board" 2>&1) || echo "commit failed, finding out why"
|
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'; then
|
||||||
echo "headers: looks like nothing to commit"
|
echo "headers: looks like nothing to commit"
|
||||||
echo "::set-env name=NOCOMMIT::true"
|
echo "::set-env name=NOCOMMIT::true"
|
||||||
exit 0
|
exit 0
|
||||||
elif echo "$OUT" | grep 'changed'; then
|
elif echo "$OUT" | grep 'changed'; then
|
||||||
echo "headers: looks like something has changed"
|
echo "headers: looks like something has changed"
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
echo "headers: looks like something unexpected"
|
echo "headers: looks like something unexpected"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue