Run URL linter on nightly only (#153157)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/153157
Approved by: https://github.com/malfet
This commit is contained in:
Anthony Shoumikhin 2025-05-08 15:32:42 +00:00 committed by PyTorch MergeBot
parent efa07df257
commit 8141b146ca
2 changed files with 6 additions and 1 deletions

View File

@ -7,10 +7,14 @@ on:
ref: ref:
type: string type: string
required: true required: true
run-url-lint:
type: boolean
required: false
default: false
jobs: jobs:
lint-urls: lint-urls:
if: ${{ github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'skip-url-lint') }} if: ${{ inputs.run-url-lint }}
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
with: with:
timeout: 120 timeout: 120

View File

@ -34,6 +34,7 @@ jobs:
with: with:
runner: ${{ needs.get-label-type.outputs.label-type }} runner: ${{ needs.get-label-type.outputs.label-type }}
ref: ${{ github.sha }} ref: ${{ github.sha }}
run-url-lint: true
secrets: inherit secrets: inherit
docs-build: docs-build: