Skip to content

Commit ad114e9

Browse files
authored
Lint docs before building
1 parent 4401fab commit ad114e9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/doc-build.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,18 @@ on:
1414
- cron: '0 0 * * *'
1515

1616
jobs:
17+
lint-docs:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v3
22+
- name: Check URLs
23+
run: bash ./scripts/check_urls.sh
24+
- name: Check Links
25+
run: bash ./scripts/check_links.sh
26+
1727
build:
28+
needs: lint-docs
1829
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
1930
permissions:
2031
id-token: write

0 commit comments

Comments
 (0)