Skip to content

Commit dd5201f

Browse files
committed
update readme script
1 parent 41b65c5 commit dd5201f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/update-readme.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Update README
33
on:
44
push:
55
branches:
6-
- master # this repo called master, because created before 2020
6+
- master # This repo is using 'master' as the main branch name
77

88
jobs:
99
update-readme:
@@ -12,18 +12,22 @@ jobs:
1212
steps:
1313
- name: Checkout
1414
uses: actions/[email protected]
15-
1615

1716
- name: Setup Python
1817
uses: actions/[email protected]
19-
2018

2119
- name: Install dependencies
2220
run: pip install pyyaml
2321

2422
- name: Update README.md
23+
run: python scripts/update_readme.py
24+
25+
- name: Check if README.md has changed
2526
run: |
26-
python scripts/update_readme.py
27+
if git diff --quiet README.md; then
28+
echo "No changes to commit.";
29+
exit 0;
30+
fi
2731
2832
- name: Commit and push changes
2933
run: |

0 commit comments

Comments
 (0)