Skip to content

Commit 9aba70e

Browse files
committed
ci(workflows): skip PR coverage comment on forked pull requests
1 parent 9500017 commit 9aba70e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/tests-rs-sdk-grpc-coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
path: grpc-coverage-report.txt
7777

7878
- name: Comment PR
79-
if: github.event_name == 'pull_request' && (steps.coverage.outputs.cache_modified == 'true' || steps.coverage.outputs.status == 'failure')
79+
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && (steps.coverage.outputs.cache_modified == 'true' || steps.coverage.outputs.status == 'failure')
8080
uses: actions/github-script@v7
8181
with:
8282
script: |
@@ -120,4 +120,4 @@ jobs:
120120
121121
- name: Fail if new queries are missing
122122
if: steps.coverage.outputs.status == 'failure'
123-
run: exit 1
123+
run: exit 1

0 commit comments

Comments
 (0)