-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
38 lines (34 loc) · 944 Bytes
/
reusable-idle-help-doc.yml
File metadata and controls
38 lines (34 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Reusable check IDLE help
on:
workflow_call:
permissions: {}
env:
FORCE_COLOR: 1
jobs:
check-idle-doc-sync:
name: 'Check if IDLE help needs regenerating'
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- name: 'Download built idle.html'
uses: actions/download-artifact@v7
with:
name: idle-html
path: Doc/build/html/library
- name: 'Set up Python'
uses: actions/setup-python@v6
with:
python-version: '3'
- name: 'Regenerate Lib/idlelib/help.html'
run: python ../Tools/build/generate_idle_help.py
working-directory: Doc
- name: 'Check for changes'
run: |
git diff --exit-code Lib/idlelib/help.html || {
echo "Lib/idlelib/help.html is not up to date."
echo "Run make idlehelp in the Doc directory."
exit 1
}