make CI work with fork PRs

This commit is contained in:
Oliver Bell authored and GitHub committed 2022-05-11 14:36:58 +01:00
1 parent 4dec7824e1
commit 5ecd52a471
1 file changed
+2
+2
View File
@@ -4,9 +4,11 @@ on:
push:
branches: [ main ]
pull_request:
pull_request_target:
jobs:
build:
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork || github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.fork}}
runs-on: ubuntu-latest
steps:
- name: Checkout