Only commit if changes exist
This commit is contained in:
parent
b1685e3773
commit
827c98371b
|
@ -17,7 +17,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
git config --local user.email "hashhar_dev@outlook.com"
|
git config --local user.email "hashhar_dev@outlook.com"
|
||||||
git config --local user.name "Ashhar Hasan"
|
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
|
- name: Push changes
|
||||||
run: |
|
run: |
|
||||||
git push
|
git push
|
||||||
|
|
Loading…
Reference in New Issue