Update update_NDM.yml

one more change for only updating when a diff is made
This commit is contained in:
srcarter3 2022-03-28 13:50:30 -06:00 committed by GitHub
parent 149bab777f
commit 4bac7eb7e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,7 +30,7 @@ jobs:
git config user.name $GITHUB_ACTOR
git config user.email $GITHUB_ACTOR@users.noreply.github.com
change=`git diff`
if [ "$change" -ge 1 ]
if [[ ! -z "$change" ]]
then
git add --all
git commit -m "New NDM updates on $date - autogenerated"