Skip to content

Commit 6d3acbc

Browse files
Merge pull request #391 from NeuroML/feat/coverage-comment
ci: update comment bit to also work on PRs from forks
2 parents a4693ba + 068cf6a commit 6d3acbc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- development
88
- experimental
99
- 'test*'
10-
pull_request:
10+
pull_request_target:
1111
branches:
1212
- master
1313
- development
@@ -18,6 +18,8 @@ jobs:
1818
build:
1919

2020
runs-on: ubuntu-latest
21+
permissions:
22+
pull-requests: write
2123
strategy:
2224
matrix:
2325
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
@@ -67,7 +69,7 @@ jobs:
6769

6870
- name: Add Coverage PR Comment
6971
uses: marocchino/sticky-pull-request-comment@v2
70-
if: ${{ github.event_name == 'pull_request' && matrix.python-version == '3.12' }}
72+
if: ${{ github.event_name == 'pull_request_target' && matrix.python-version == '3.12' }}
7173
with:
7274
recreate: true
7375
path: code-coverage-results.md

0 commit comments

Comments
 (0)