Skip to content

Commit 55f04e7

Browse files
authored
Update _link_check.yml
1 parent a7ca311 commit 55f04e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/_link_check.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
jobs:
99
lint-urls:
10+
if: ${{ github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'skip-url-lint') }}
1011
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
1112
with:
1213
runner: linux.2xlarge
@@ -24,6 +25,7 @@ jobs:
2425
)
2526
2627
lint-xrefs:
28+
if: ${{ github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'skip-xref-lint') }}
2729
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
2830
with:
2931
runner: linux.2xlarge

0 commit comments

Comments
 (0)