Skip to content

Commit 571ff81

Browse files
Fix check
1 parent 7dbf673 commit 571ff81

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

.github/workflows/reusable-idle-help-doc.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,8 @@ jobs:
3232
working-directory: Doc
3333
- name: 'Check for changes'
3434
run: |
35-
git add -u
36-
changes=$(git status --porcelain)
37-
# Check for changes in regenerated files
38-
if test -n "$changes"; then
39-
echo "Generated files not up to date."
40-
echo "Perhaps you forgot to run make idlehelp ;)"
41-
echo "$changes"
42-
echo ""
43-
git diff --staged || true
44-
exit 1
45-
fi
35+
git diff --exit-code Lib/idlelib/help.html || {
36+
echo "Lib/idlelib/help.html is not up to date."
37+
echo "Run make idlehelp in the Doc directory."
38+
exit 1
39+
}

0 commit comments

Comments
 (0)