unintended *.kicad_pro push #351

This commit is contained in:
rusefillc 2023-12-10 20:59:42 -05:00
parent 86da826ab2
commit 5ea98c6d13
1 changed files with 6 additions and 1 deletions

View File

@ -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