Skip to content

Commit 30ccd37

Browse files
committed
Only commit and push to website if there are changes
1 parent 19f718d commit 30ccd37

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/publish-to-website.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,4 @@ jobs:
5858
run: |
5959
git config --local user.name "github-actions[bot]"
6060
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
61-
git add .
62-
git commit -m "Update Learning Path articles"
63-
git push
61+
git diff --quiet || git add . && git commit -m "Update Learning Path articles" && git push

0 commit comments

Comments
 (0)