mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
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:
parent
efa07df257
commit
8141b146ca
6
.github/workflows/_link_check.yml
vendored
6
.github/workflows/_link_check.yml
vendored
|
|
@ -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
|
||||||
|
|
|
||||||
1
.github/workflows/nightly.yml
vendored
1
.github/workflows/nightly.yml
vendored
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user