ci: skip PR comment when a fork token is read-only
This commit is contained in:
1 parent
d879bdcdc4
commit
a31ecdaf8f
1 file changed
+1
-1
@@ -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: |
|
||||
|
||||
Reference in new issue
Block a user