File tree Expand file tree Collapse file tree 3 files changed +49
-0
lines changed Expand file tree Collapse file tree 3 files changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Wait for checks
2
+
3
+ on :
4
+ workflow_call :
5
+ inputs :
6
+ match_pattern :
7
+ required : true
8
+ type : string
9
+
10
+ jobs :
11
+ wait :
12
+ runs-on : ubuntu-latest
13
+ permissions :
14
+ checks : read
15
+ steps :
16
+ - name : Wait for checks (PRs only)
17
+ if : github.event_name == 'pull_request' || startsWith(github.ref, 'refs/heads/pull-request/')
18
+
19
+ with :
20
+ token : ${{ secrets.GITHUB_TOKEN }}
21
+ match_pattern : ${{ inputs.match_pattern }}
22
+ delay : 15s
23
+ - name : No-op for non-PR events
24
+ if : github.event_name != 'pull_request' && !startsWith(github.ref, 'refs/heads/pull-request/')
25
+ run : echo "Not a pull_request event"
Original file line number Diff line number Diff line change @@ -18,7 +18,23 @@ concurrency:
18
18
cancel-in-progress : true
19
19
20
20
jobs :
21
+ wait-dco :
22
+ uses : ./.github/workflows/_wait_for_checks.yml
23
+ permissions :
24
+ checks : read
25
+ secrets : inherit
26
+ with :
27
+ match_pattern : ' ^DCO$'
28
+ wait-unit-tests :
29
+ needs : [wait-dco]
30
+ uses : ./.github/workflows/_wait_for_checks.yml
31
+ permissions :
32
+ checks : read
33
+ secrets : inherit
34
+ with :
35
+ match_pattern : ' Unit tests / linux.*'
21
36
gpu-tests :
37
+ needs : [wait-unit-tests]
22
38
# Runner list at https://github.com/nv-gha-runners/enterprise-runner-configuration/blob/main/docs/runner-groups.md
23
39
runs-on : linux-amd64-gpu-h100-latest-1
24
40
timeout-minutes : 60
Original file line number Diff line number Diff line change @@ -26,7 +26,15 @@ concurrency:
26
26
cancel-in-progress : true
27
27
28
28
jobs :
29
+ wait-dco :
30
+ uses : ./.github/workflows/_wait_for_checks.yml
31
+ permissions :
32
+ checks : read
33
+ secrets : inherit
34
+ with :
35
+ match_pattern : ' ^DCO$'
29
36
linux :
37
+ needs : [wait-dco]
30
38
runs-on : ubuntu-latest
31
39
timeout-minutes : 30
32
40
steps :
You can’t perform that action at this time.
0 commit comments