ci: skip PR comment when a fork token is read-only

This commit is contained in:
bvz rays committed 2026-12-02 14:20:10 +08:00
1 parent d879bdcdc4
commit a31ecdaf8f
1 file changed
+1 -1
+1 -1
View File
@@ -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: |