WORKFLOW: tentative solution for PRs [skip ci]

This commit is contained in:
XargonWan 2024-08-25 14:18:01 +09:00
parent feed0a1e58
commit bf619738f8

View file

@ -15,7 +15,7 @@ on:
- '*.sh' - '*.sh'
- 'net.retrodeck.retrodeck.yml' - 'net.retrodeck.retrodeck.yml'
- 'net.retrodeck.retrodeck.appdata.xml' - 'net.retrodeck.retrodeck.appdata.xml'
pull_request: pull_request_target:
branches: branches:
- cooker* - cooker*
@ -56,6 +56,12 @@ jobs:
with: with:
submodules: 'true' 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" - name: "Install dependencies"
run: "automation_tools/install_dependencies.sh" run: "automation_tools/install_dependencies.sh"