From a31ecdaf8fe3f8ef383a9e2be0b14485e15a62a0 Mon Sep 17 00:00:00 2001 From: bvz rays <1372627285@qq.com> Date: Wed, 2 Dec 2026 14:20:10 +0800 Subject: [PATCH] ci: skip PR comment when a fork token is read-only --- .github/workflows/pr-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index fd96c22..7c2e9ce 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -76,7 +76,7 @@ jobs: node scripts/build-index.mjs --check $extra --report pr-report.md - name: Post gate report comment on PR - if: always() && hashFiles('pr-report.md') != '' + if: always() && hashFiles('pr-report.md') != '' && github.event.pull_request.head.repo.full_name == github.repository uses: actions/github-script@v7 with: script: |