Add pull_request_target trigger to test-and-build workflow

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2024-01-17 12:16:35 +01:00 committed by David Mehren
parent cf766fb4a6
commit 3aa5bb1e34

View file

@ -9,6 +9,11 @@ on:
branches: [ develop ]
pull_request:
branches: [ develop ]
pull_request_target:
branches: [ develop ]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.job }}
@ -16,6 +21,7 @@ concurrency:
jobs:
build:
if: "(github.event_name == 'pull_request_target') == github.event.pull_request.head.repo.fork"
runs-on: ubuntu-latest
strategy:
matrix: