This commit is contained in:
Charles Bochet
2023-07-05 09:13:47 +02:00
parent 81f851b362
commit 67453ce925

View File

@ -8,15 +8,12 @@ jobs:
server-test:
runs-on: ubuntu-latest
steps:
- run: echo "GITHUB_HEAD_REF: ${{ github.head_ref }}"
- run: echo "GITHUB_REF_NAME: ${{ github.ref_name }}"
- run: echo "GITHUB_REF: ${{ github.ref }}"
- uses: actions/checkout@v3
if: github.head_ref == 'main'
if: github.event_name != 'pull_request_target'
with:
ref: ${{ github.head_ref || github.ref_name }}
- uses: actions/checkout@v3
if: github.head_ref != 'main'
if: github.head_ref == 'pull_request_target'
with:
ref: "refs/pull/${{ github.event.number }}/merge"
- name: Setup Node.js