File tree Expand file tree Collapse file tree 3 files changed +45
-21
lines changed Expand file tree Collapse file tree 3 files changed +45
-21
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ workflow_call :
3
+ inputs :
4
+ ref :
5
+ type : string
6
+ required : true
7
+
8
+ jobs :
9
+ lint-urls :
10
+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
11
+ with :
12
+ runner : linux.2xlarge
13
+ docker-image : executorch-ubuntu-22.04-linter
14
+ submodules : ' none'
15
+ fetch-depth : 0
16
+ ref : ${{ inputs.ref }}
17
+ timeout : 90
18
+ script : |
19
+ ./scripts/lint_urls.sh $(
20
+ [ "${{ github.event_name }}" = "pull_request" ] \
21
+ && git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }}
22
+ )
23
+
24
+ lint-xrefs :
25
+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
26
+ with :
27
+ runner : linux.2xlarge
28
+ docker-image : executorch-ubuntu-22.04-linter
29
+ submodules : ' none'
30
+ fetch-depth : 0
31
+ ref : ${{ inputs.ref }}
32
+ timeout : 90
33
+ script : |
34
+ ./scripts/lint_xrefs.sh $(
35
+ [ "${{ github.event_name }}" = "pull_request" ] \
36
+ && git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }}
37
+ )
Original file line number Diff line number Diff line change @@ -64,29 +64,10 @@ jobs:
64
64
65
65
exit $RC
66
66
67
- lint-urls :
68
- uses : pytorch/test-infra/ .github/workflows/linux_job_v2 .yml@main
67
+ link-check :
68
+ uses : ./ .github/workflows/_link_check .yml
69
69
with :
70
- runner : linux.2xlarge
71
- docker-image : executorch-ubuntu-22.04-linter
72
- submodules : ' none'
73
- fetch-depth : 0
74
70
ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
75
- timeout : 90
76
- script : |
77
- ./scripts/lint_urls.sh
78
-
79
- lint-xrefs :
80
- uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
81
- with :
82
- runner : linux.2xlarge
83
- docker-image : executorch-ubuntu-22.04-linter
84
- submodules : ' none'
85
- fetch-depth : 0
86
- ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
87
- timeout : 90
88
- script : |
89
- ./scripts/lint_xrefs.sh
90
71
91
72
android-java-format :
92
73
uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
Original file line number Diff line number Diff line change 30
30
test-infra-ref : main
31
31
updatebot-token : ${{ secrets.UPDATEBOT_TOKEN }}
32
32
pytorchbot-token : ${{ secrets.GH_PYTORCHBOT_TOKEN }}
33
+
34
+ link-check :
35
+ needs : update-pytorch-commit-hash
36
+ uses : ./.github/workflows/_link_check.yml
37
+ with :
38
+ ref : ${{ github.sha }}
You can’t perform that action at this time.
0 commit comments