doesn't push if there aren't any changes

This commit is contained in:
wyatt-avilla 2023-11-05 22:01:09 -08:00
parent 2aedaed37e
commit 13b97168fc

View File

@ -30,5 +30,4 @@ jobs:
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -m "automatic wiki update from github actions"
git push
git diff-index --quiet HEAD || git commit -m "automatic wiki update from github actions" && git push