Skip to content

Commit f727158

Browse files
committed
Skip manual check-runs on fork PRs
1 parent b2f5467 commit f727158

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/build-nabla.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ jobs:
228228
229229
- name: API / Examples / Check Run (Create)
230230
id: check-run-create
231+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
231232
uses: actions/github-script@v6
232233
with:
233234
github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -270,6 +271,7 @@ jobs:
270271
"completed_at=$completedAt" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
271272
272273
- name: API / Examples / Check Run (Update)
274+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
273275
uses: actions/github-script@v6
274276
with:
275277
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)