From 3aa5bb1e3409e177ed56a623ddfcdc86f3b1cc52 Mon Sep 17 00:00:00 2001 From: Tilman Vatteroth Date: Wed, 17 Jan 2024 12:16:35 +0100 Subject: [PATCH] Add pull_request_target trigger to test-and-build workflow Signed-off-by: Tilman Vatteroth --- .github/workflows/test-and-build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/test-and-build.yml b/.github/workflows/test-and-build.yml index becebf7cb..6c3221ad1 100644 --- a/.github/workflows/test-and-build.yml +++ b/.github/workflows/test-and-build.yml @@ -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: