workflow: fix git diff call

This commit is contained in:
Julian Mutter 2025-03-22 09:14:14 +01:00
parent b76da6e9eb
commit 00a448010d

View File

@ -50,9 +50,7 @@ jobs:
shell: bash
run: |
git add flake.lock
if git diff --quiet; then
echo "No changes to commit."
else
git commit -m "Update flake.lock $(date -I)"
git push origin flake-updates
fi
git diff --quiet && echo "No changes to commit." && exit 0
git commit -m "Update flake.lock $(date -I)"
git push origin flake-updates