From c86e548088e2c12c7c981d6015c62608b416aa01 Mon Sep 17 00:00:00 2001 From: Charles Bochet Date: Wed, 5 Jul 2023 09:09:29 +0200 Subject: [PATCH] Fix CI --- .github/workflows/ci-server.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci-server.yaml b/.github/workflows/ci-server.yaml index bfc8aa671..be88ed7da 100644 --- a/.github/workflows/ci-server.yaml +++ b/.github/workflows/ci-server.yaml @@ -9,8 +9,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + if: github.head_ref == 'main' with: ref: ${{ github.head_ref || github.ref_name }} + - uses: actions/checkout@v3 + if: github.head_ref != 'main' + with: + ref: "refs/pull/${{ github.event.number }}/merge" - name: Setup Node.js uses: actions/setup-node@v3 with: