File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 15
15
jobs :
16
16
# Build the documentation against the minimum version of the dependencies
17
17
doc-min-dependencies :
18
+ # This prevents this workflow from running on a fork.
19
+ # To test this workflow on a fork, uncomment the following line.
20
+ if : github.repository == 'scikit-learn/scikit-learn'
21
+
18
22
runs-on : ubuntu-latest
19
23
steps :
20
24
- name : Checkout scikit-learn
41
45
42
46
# Build the documentation against the latest version of the dependencies
43
47
doc :
48
+ # This prevents this workflow from running on a fork.
49
+ # To test this workflow on a fork, uncomment the following line.
50
+ if : github.repository == 'scikit-learn/scikit-learn'
51
+
44
52
runs-on : ubuntu-latest
45
53
steps :
46
54
- name : Checkout scikit-learn
Original file line number Diff line number Diff line change 11
11
push :
12
12
runs-on : ubuntu-latest
13
13
# Run the job only if the "Documentation builder" workflow succeeded
14
- if : ${{ github.event.workflow_run.conclusion == 'success' }}
14
+ # Prevents this workflow from running on a fork.
15
+ # To test this workflow on a fork remove the `github.repository == scikit-learn/scikit-learn` condition
16
+ if : github.repository == 'scikit-learn/scikit-learn' && github.event.workflow_run.conclusion == 'success'
15
17
steps :
16
18
- name : Checkout scikit-learn
17
19
uses : actions/checkout@v2
You can’t perform that action at this time.
0 commit comments