Only commit if changes exist

pull/4/head
Ashhar Hasan 4 years ago committed by GitHub
parent b1685e3773
commit 827c98371b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -17,7 +17,7 @@ jobs:
run: |
git config --local user.email "hashhar_dev@outlook.com"
git config --local user.name "Ashhar Hasan"
git commit -m "Synced on $(date -I)" -a
git diff --quiet && git diff --staged --quiet || git commit -m "Synced on $(date -I)" -a
- name: Push changes
run: |
git push

Loading…
Cancel
Save