From bf619738f8e4f1e3e9bc7839e79bf6c0579bd7dd Mon Sep 17 00:00:00 2001 From: XargonWan Date: Sun, 25 Aug 2024 14:18:01 +0900 Subject: [PATCH] WORKFLOW: tentative solution for PRs [skip ci] --- .github/workflows/cooker-selfhosted.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml index 2994d14e..ba1f8785 100644 --- a/.github/workflows/cooker-selfhosted.yml +++ b/.github/workflows/cooker-selfhosted.yml @@ -15,7 +15,7 @@ on: - '*.sh' - 'net.retrodeck.retrodeck.yml' - 'net.retrodeck.retrodeck.appdata.xml' - pull_request: + pull_request_target: branches: - cooker* @@ -56,6 +56,12 @@ jobs: with: submodules: 'true' + - name: Checkout PR branch (include changes) + if: ${{ github.event_name == 'pull_request' }} + run: | + git fetch origin +refs/pull/${{ github.event.pull_request.number }}/merge + git checkout -qf FETCH_HEAD + - name: "Install dependencies" run: "automation_tools/install_dependencies.sh"