workflow: fix git diff call
This commit is contained in:
parent
b76da6e9eb
commit
00a448010d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user