Skip to content

Commit f5762e7

Browse files
committed
update readme
1 parent dd5201f commit f5762e7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/update-readme.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,12 @@ jobs:
2323
run: python scripts/update_readme.py
2424

2525
- name: Check if README.md has changed
26+
id: readme_diff
2627
run: |
27-
if git diff --quiet README.md; then
28-
echo "No changes to commit.";
29-
exit 0;
30-
fi
28+
git diff README.md || echo "README_CHANGED=true" >> $GITHUB_ENV
3129
3230
- name: Commit and push changes
31+
if: env.README_CHANGED == 'true'
3332
run: |
3433
git config --global user.name 'github-actions'
3534
git config --global user.email '[email protected]'

0 commit comments

Comments
 (0)