From 23195f4a2e6a2f7c42ea8d30c5221c92591c99b0 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Fri, 2 May 2025 16:38:19 -0400 Subject: [PATCH 1/2] ci: don't add doc links to fork's PRs Signed-off-by: Henry Schreiner --- .github/workflows/documentation-links.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/documentation-links.yml b/.github/workflows/documentation-links.yml index fc9f44a2bc7..f84c17ff74d 100644 --- a/.github/workflows/documentation-links.yml +++ b/.github/workflows/documentation-links.yml @@ -16,6 +16,7 @@ concurrency: jobs: documentation-links: runs-on: ubuntu-latest + if: github.event.pull_request.head.repo.full_name == 'python/peps' steps: - uses: readthedocs/actions/preview@v1 with: From 4a24818c3d612395562dba50e843736a29fc1c26 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Fri, 2 May 2025 16:50:05 -0400 Subject: [PATCH 2/2] Update .github/workflows/documentation-links.yml Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> --- .github/workflows/documentation-links.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/documentation-links.yml b/.github/workflows/documentation-links.yml index f84c17ff74d..43ae724a839 100644 --- a/.github/workflows/documentation-links.yml +++ b/.github/workflows/documentation-links.yml @@ -16,7 +16,7 @@ concurrency: jobs: documentation-links: runs-on: ubuntu-latest - if: github.event.pull_request.head.repo.full_name == 'python/peps' + if: github.event.repository.fork == false steps: - uses: readthedocs/actions/preview@v1 with: