check for date-only or version-only changes

This commit is contained in:
David Holdeman 2023-07-24 19:53:02 -05:00
parent 05e07f911d
commit 993eaa22c7
No known key found for this signature in database
GPG Key ID: DBEE6FCFCC9DD9A6
1 changed files with 5 additions and 0 deletions

View File

@ -52,6 +52,11 @@ jobs:
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
run: |
git diff --name-only | while read f; do
if [ $(git diff --color=always|perl -wlne 'print $1 if /^\e\[32m\+\e\[m\e\[32m(.*)\e\[m$/' "$f" | grep -vE "Created|Generation|[dD]ate" | wc -l) -eq 0 ]; then
git checkout "$f"
fi
done
bash hellen-one/bin/gha-commit.sh
- name: Push board files