From d5f1dc2a84cd48b849da53ab05f78decc8f9ba25 Mon Sep 17 00:00:00 2001 From: Douglas Raillard Date: Thu, 25 May 2023 02:27:10 +0100 Subject: [PATCH] .github/workflows/preview.yml: Fixup condition --- .github/workflows/preview.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index dc756884a..bb2468c5c 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -2,7 +2,7 @@ name: preview on: # Whenever a pull request is labeled or unlabeled. - pull_request: + pull_request_target: types: [labeled, unlabeled, synchronize] # To be able to manually trigger the job from GitHub UI @@ -27,11 +27,11 @@ jobs: if: | ${{ ( - github.event_name == 'pull_request' && + github.event_name == 'pull_request_target' && ( ( github.event.action == 'synchronize' && - contains(github.event.pull_request.labels.*.name, 'preview') + contains(github.event.pull_request_target.labels.*.name, 'preview') ) || ( ( @@ -42,7 +42,7 @@ jobs: ) ) ) || - github.event_name != 'pull_request' + github.event_name != 'pull_request_target' }} steps: -- GitLab