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"