From 156ddd74adfaa8676840552e1d02652f1cc0a424 Mon Sep 17 00:00:00 2001 From: Evan Bonsignori Date: Fri, 21 Oct 2022 13:23:14 -0700 Subject: [PATCH] run on PR, not merge commit (#31963) --- .github/workflows/link-check-on-pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/link-check-on-pr.yml b/.github/workflows/link-check-on-pr.yml index 6a5b7fa147..1af11a5ce2 100644 --- a/.github/workflows/link-check-on-pr.yml +++ b/.github/workflows/link-check-on-pr.yml @@ -10,7 +10,7 @@ on: push: branches: - main - pull_request: + pull_request_target: permissions: contents: read @@ -26,7 +26,7 @@ concurrency: jobs: check-links: runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }} - if: (github.repository == 'github/docs-internal' || github.repository == 'github/docs') && github.repository_owner == 'github' + if: github.repository == 'github/docs-internal' || github.repository == 'github/docs' steps: - name: Checkout uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748