File tree Expand file tree Collapse file tree 5 files changed +7
-5
lines changed Expand file tree Collapse file tree 5 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 7
7
pull_request :
8
8
paths :
9
9
- .github/workflows/*.yml
10
+ workflow_dispatch :
10
11
schedule :
11
12
- cron : ' 17 10 * * 2'
12
13
13
14
jobs :
14
15
analyze-python :
15
16
name : Analyze GitHub Actions
17
+ if : github.repository_owner == 'mongodb' || github.event_name == 'workflow_dispatch'
16
18
runs-on : " ubuntu-latest"
17
19
timeout-minutes : 360
18
20
permissions :
Original file line number Diff line number Diff line change 11
11
- .github/workflows/*python.yml
12
12
schedule :
13
13
- cron : ' 17 10 * * 2'
14
+ workflow_dispatch :
14
15
workflow_call :
15
16
inputs :
16
17
ref :
20
21
jobs :
21
22
analyze-python :
22
23
name : Analyze Python
24
+ if : github.repository_owner == 'mongodb' || (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call')
23
25
runs-on : " macos-latest"
24
26
timeout-minutes : 360
25
27
permissions :
Original file line number Diff line number Diff line change 15
15
workflow_dispatch :
16
16
workflow_call :
17
17
inputs :
18
- force :
19
- required : true
20
- type : boolean
21
18
ref :
22
19
required : true
23
20
type : string
@@ -33,7 +30,7 @@ defaults:
33
30
34
31
jobs :
35
32
build_dist :
36
- if : github.repository_owner == 'mongodb' || inputs.force == true
33
+ if : github.repository_owner == 'mongodb' || (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call')
37
34
runs-on : ${{ matrix.os }}
38
35
strategy :
39
36
matrix :
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ defaults:
35
35
jobs :
36
36
pre-publish :
37
37
environment : release-python
38
+ if : github.repository_owner == 'mongodb' || github.event_name == 'workflow_dispatch'
38
39
runs-on : ubuntu-latest
39
40
permissions :
40
41
id-token : write
65
66
needs : [pre-publish]
66
67
uses : ./.github/workflows/dist-python.yml
67
68
with :
68
- force : true
69
69
ref : ${{ needs.pre-publish.outputs.version }}
70
70
71
71
static-scan :
Original file line number Diff line number Diff line change 9
9
jobs :
10
10
zizmor :
11
11
name : zizmor latest via Cargo
12
+ if : github.repository_owner == 'mongodb'
12
13
runs-on : ubuntu-latest
13
14
permissions :
14
15
security-events : write
You can’t perform that action at this time.
0 commit comments