Avoid workflow erroring if there's nothing to change
All checks were successful
/ test (push) Successful in 12s

This commit is contained in:
Christopher Baines 2025-06-24 21:14:52 +02:00
parent 2e25c3b074
commit edf62414ee

View file

@ -16,7 +16,11 @@ jobs:
- run: | - run: |
cd knots-pages cd knots-pages
git add . git add .
if [[ -z "$(git status -s)" ]]; then
echo "Nothing to push"
else
git config user.email "" git config user.email ""
git config user.name "Automatic website updater" git config user.name "Automatic website updater"
git commit -m "Automatic website update" git commit -m "Automatic website update"
git push git push
fi