From 41edcd81d8fe110304a75418f010041d804b83b7 Mon Sep 17 00:00:00 2001 From: Charles Bochet Date: Wed, 5 Jul 2023 00:04:05 +0200 Subject: [PATCH] Fix CI on main --- .github/workflows/ci-chromatic.yaml | 2 +- .github/workflows/ci-docs.yaml | 2 +- .github/workflows/ci-front.yaml | 2 +- .github/workflows/ci-server.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-chromatic.yaml b/.github/workflows/ci-chromatic.yaml index 07e18a22bdb..0430679898f 100644 --- a/.github/workflows/ci-chromatic.yaml +++ b/.github/workflows/ci-chromatic.yaml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 - ref: "refs/pull/${{ github.event.number }}/merge" + ref: ${{ github.head_ref || github.ref_name }} - name: Setup Node.js uses: actions/setup-node@v3 with: diff --git a/.github/workflows/ci-docs.yaml b/.github/workflows/ci-docs.yaml index 179d09ce884..de7dddd888e 100644 --- a/.github/workflows/ci-docs.yaml +++ b/.github/workflows/ci-docs.yaml @@ -10,7 +10,7 @@ jobs: steps: - uses: actions/checkout@v3 with: - ref: "refs/pull/${{ github.event.number }}/merge" + ref: ${{ github.head_ref || github.ref_name }} - name: Setup Node.js uses: actions/setup-node@v3 with: diff --git a/.github/workflows/ci-front.yaml b/.github/workflows/ci-front.yaml index 6f02b3e9b9b..6708b74d839 100644 --- a/.github/workflows/ci-front.yaml +++ b/.github/workflows/ci-front.yaml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@v3 with: - ref: "refs/pull/${{ github.event.number }}/merge" + ref: ${{ github.head_ref || github.ref_name }} - name: Setup Node.js uses: actions/setup-node@v3 with: diff --git a/.github/workflows/ci-server.yaml b/.github/workflows/ci-server.yaml index 9ea8868e024..bfc8aa67196 100644 --- a/.github/workflows/ci-server.yaml +++ b/.github/workflows/ci-server.yaml @@ -10,7 +10,7 @@ jobs: steps: - uses: actions/checkout@v3 with: - ref: "refs/pull/${{ github.event.number }}/merge" + ref: ${{ github.head_ref || github.ref_name }} - name: Setup Node.js uses: actions/setup-node@v3 with: