File tree 5 files changed +13
-10
lines changed
5 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 8
8
cancel :
9
9
name : Cancel previous runs
10
10
runs-on : ubuntu-latest
11
+ if : github.repository == 'pydata/xarray'
11
12
steps :
12
13
13
14
with :
Original file line number Diff line number Diff line change 12
12
detect-ci-trigger :
13
13
name : detect ci trigger
14
14
runs-on : ubuntu-latest
15
- if : github.event_name == 'push' || github.event_name == 'pull_request'
15
+ if : |
16
+ github.repository == 'pydata/xarray'
17
+ && (github.event_name == 'push' || github.event_name == 'pull_request')
16
18
outputs :
17
19
triggered : ${{ steps.detect-trigger.outputs.trigger-found }}
18
20
steps :
@@ -111,6 +113,7 @@ jobs:
111
113
doctest :
112
114
name : Doctests
113
115
runs-on : " ubuntu-latest"
116
+ if : github.repository == 'pydata/xarray'
114
117
defaults :
115
118
run :
116
119
shell : bash -l {0}
Original file line number Diff line number Diff line change 10
10
linting :
11
11
name : " pre-commit hooks"
12
12
runs-on : ubuntu-latest
13
+ if : github.repository == 'pydata/xarray'
13
14
steps :
14
15
- uses : actions/checkout@v2
15
16
- uses : actions/setup-python@v2
Original file line number Diff line number Diff line change 12
12
detect-ci-trigger :
13
13
name : detect ci trigger
14
14
runs-on : ubuntu-latest
15
- if : github.event_name == 'push' || github.event_name == 'pull_request'
15
+ if : |
16
+ github.repository == 'pydata/xarray'
17
+ && (github.event_name == 'push' || github.event_name == 'pull_request')
16
18
outputs :
17
19
triggered : ${{ steps.detect-trigger.outputs.trigger-found }}
18
20
steps :
Original file line number Diff line number Diff line change 14
14
detect-ci-trigger :
15
15
name : detect upstream-dev ci trigger
16
16
runs-on : ubuntu-latest
17
- if : github.event_name == 'push' || github.event_name == 'pull_request'
17
+ if : |
18
+ github.repository == 'pydata/xarray'
19
+ && (github.event_name == 'push' || github.event_name == 'pull_request')
18
20
outputs :
19
21
triggered : ${{ steps.detect-trigger.outputs.trigger-found }}
20
22
steps :
31
33
runs-on : ubuntu-latest
32
34
needs : detect-ci-trigger
33
35
if : |
34
- always()
35
- && github.repository == 'pydata/xarray'
36
- && (
37
36
(github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
38
37
|| needs.detect-ci-trigger.outputs.triggered == 'true'
39
- )
40
38
defaults :
41
39
run :
42
40
shell : bash -l {0}
97
95
name : report
98
96
needs : upstream-dev
99
97
if : |
100
- always()
101
- && github.event_name == 'schedule'
102
- && github.repository == 'pydata/xarray'
98
+ github.event_name == 'schedule'
103
99
&& needs.upstream-dev.outputs.artifacts_availability == 'true'
104
100
runs-on : ubuntu-latest
105
101
defaults :
You can’t perform that action at this time.
0 commit comments