added error handling for when there are no changes to commit

This commit is contained in:
neCo 2024-05-21 13:09:55 +02:00
parent 3de5fea467
commit bddcb73b54

View file

@ -39,8 +39,8 @@ jobs:
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add -f mikupad_compiled.html
git commit -m "Update mikupad_compiled.html"
git push origin main
git commit -m "Update mikupad_compiled.html" || echo "No changes to commit"
git push origin main || echo "Nothing to push"
- name: Upload artifact
uses: actions/upload-artifact@v3