WORKFLOW: tentative solution for PRs - try#2 [skip ci]

This commit is contained in:
XargonWan 2024-08-25 17:42:50 +09:00
parent bf619738f8
commit 056179c629

View file

@ -57,7 +57,7 @@ jobs:
submodules: 'true' submodules: 'true'
- name: Checkout PR branch (include changes) - name: Checkout PR branch (include changes)
if: ${{ github.event_name == 'pull_request' }} if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository }}
run: | run: |
git fetch origin +refs/pull/${{ github.event.pull_request.number }}/merge git fetch origin +refs/pull/${{ github.event.pull_request.number }}/merge
git checkout -qf FETCH_HEAD git checkout -qf FETCH_HEAD