Skip to content

Commit 9ad0358

Browse files
authored
Move link checks to a dedicated workflow
1 parent 9a8fcba commit 9ad0358

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/_link_check.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Link checks
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
ref:
7+
type: string
8+
required: true
9+
10+
jobs:
11+
lint-urls:
12+
name: Lint URLs
13+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
14+
with:
15+
runner: linux.2xlarge
16+
docker-image: executorch-ubuntu-22.04-linter
17+
submodules: 'none'
18+
fetch-depth: 0
19+
ref: ${{ inputs.ref }}
20+
timeout: 90
21+
script: |
22+
./scripts/lint_urls.sh
23+
24+
lint-xrefs:
25+
name: Lint Xrefs
26+
needs: lint-urls
27+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
28+
with:
29+
runner: linux.2xlarge
30+
docker-image: executorch-ubuntu-22.04-linter
31+
submodules: 'none'
32+
fetch-depth: 0
33+
ref: ${{ inputs.ref }}
34+
timeout: 90
35+
script: |
36+
./scripts/lint_xrefs.sh

0 commit comments

Comments
 (0)