From a825d9a9e655b543eb20a5a0ba1e0bfe76f12415 Mon Sep 17 00:00:00 2001 From: Ash Berlin-Taylor Date: Fri, 16 Apr 2021 10:02:10 +0100 Subject: [PATCH] Test pull_request_target workflow trigger --- .github/workflows/build-images-workflow-run.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-images-workflow-run.yml b/.github/workflows/build-images-workflow-run.yml index e00cdc5fd0d0b..ca51dc63a61c8 100644 --- a/.github/workflows/build-images-workflow-run.yml +++ b/.github/workflows/build-images-workflow-run.yml @@ -18,9 +18,9 @@ --- name: "Build Images" on: # yamllint disable-line rule:truthy - workflow_run: - workflows: ["CI Build"] - types: ['requested'] + pull_request_target: + push: + branches: ['main', 'master', 'v1-10-test', 'v1-10-stable', 'v2-0-test'] env: MOUNT_SELECTED_LOCAL_SOURCES: "false" FORCE_ANSWER_TO_QUESTIONS: "yes" @@ -72,6 +72,12 @@ jobs: with: persist-credentials: false submodules: recursive + - name: Show GH context + run: | + echo "$GITHUB_CONTEXT" + env: + GITHUB_CONTEXT: ${{ toJson(github) }} + - name: "Get information about the original trigger of the run" uses: ./.github/actions/get-workflow-origin id: source-run-info