Skip to content

Commit 87f146d

Browse files
authored
Merge pull request #1722 from finos/fix-coverage
Fix coverage workflow: don't post comment on PRs from forks
2 parents 26c5d0b + 56d9f9b commit 87f146d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ jobs:
5151
output: test-summary.md
5252
if: always()
5353

54-
# Only post comments if the PR came from FINOS (the only repo with permission to run it)
54+
# Only post comments if the PR came from this repo rather than a fork (the only repo with permission to do so)
5555
- name: PR comment with file
56-
if: github.event.pull_request.head.repo.full_name == 'finos/FDC3'
56+
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
5757
uses: thollander/actions-comment-pull-request@v3
5858
with:
5959
file-path: test-summary.md

0 commit comments

Comments
 (0)