ci: handle cases when there's nothing to commit

This commit is contained in:
Bogdan Popa committed 2021-11-17 09:27:16 +02:00
1 parent b90d8d416f
commit e5aa35d978
1 file changed
+3 -3
+3 -3
View File
@@ -31,6 +31,6 @@ jobs:
run: |
git config user.email 'actions@github.com'
git config user.name 'github-actions'
git add README.md
git commit -m 'update badges'
git push origin HEAD:${{ github.ref }}
if git commit -am 'update badges'; then
git push origin HEAD:${{ github.ref }}
fi