File tree 2 files changed +20
-26
lines changed
2 files changed +20
-26
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ permissions:
28
28
contents : read
29
29
30
30
concurrency :
31
- group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
31
+ group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}-reusable
32
32
cancel-in-progress : true
33
33
34
34
jobs :
37
37
runs-on : ubuntu-latest
38
38
timeout-minutes : 10
39
39
outputs :
40
+ run-docs : ${{ steps.docs-changes.outputs.run-docs || false }}
40
41
run_tests : ${{ steps.check.outputs.run_tests }}
41
42
run_hypothesis : ${{ steps.check.outputs.run_hypothesis }}
42
43
steps :
74
75
echo "Run hypothesis tests"
75
76
echo "run_hypothesis=true" >> $GITHUB_OUTPUT
76
77
fi
78
+ - name : Get a list of the changed documentation-related files
79
+ if : github.event_name == 'pull_request'
80
+ id : changed-docs-files
81
+
82
+ with :
83
+ filter : |
84
+ Doc/**
85
+ Misc/**
86
+ .github/workflows/reusable-docs.yml
87
+ - name : Check for docs changes
88
+ if : >-
89
+ github.event_name == 'pull_request'
90
+ && steps.changed-docs-files.outputs.added_modified_renamed != ''
91
+ id : docs-changes
92
+ run : |
93
+ echo "run-docs=true" >> "${GITHUB_OUTPUT}"
77
94
78
95
check_generated_files :
79
96
name : ' Check if generated files are up to date'
Original file line number Diff line number Diff line change 1
- name : Docs
1
+ name : 📝
2
2
3
3
on :
4
+ workflow_call :
4
5
workflow_dispatch :
5
- # push:
6
- # branches:
7
- # - 'main'
8
- # - '3.12'
9
- # - '3.11'
10
- # - '3.10'
11
- # - '3.9'
12
- # - '3.8'
13
- # - '3.7'
14
- # paths:
15
- # - 'Doc/**'
16
- pull_request :
17
- branches :
18
- - ' main'
19
- - ' 3.12'
20
- - ' 3.11'
21
- - ' 3.10'
22
- - ' 3.9'
23
- - ' 3.8'
24
- - ' 3.7'
25
- paths :
26
- - ' Doc/**'
27
- - ' Misc/**'
28
- - ' .github/workflows/doc.yml'
29
6
30
7
permissions :
31
8
contents : read
You can’t perform that action at this time.
0 commit comments