Skip to content

Commit cc87f83

Browse files
committed
feat: improve README update process by adding check for changes before committing
1 parent 665c6c8 commit cc87f83

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/update_readme.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ jobs:
5656
run: |
5757
git config --local user.email "action@github.com"
5858
git config --local user.name "GitHub Action"
59-
git add readme.md
60-
git commit -m "Update README with new version details [ci skip]"
61-
git push
59+
if ! git diff --quiet readme.md; then
60+
git add readme.md
61+
git commit -m "Update README with new version details [ci skip]"
62+
git push
63+
echo "README updated and pushed"
64+
else
65+
echo "No changes to README, skipping commit"
66+
fi

0 commit comments

Comments
 (0)