Skip to content

The open alternative to Salesforce, designed for AI.

Fix CI on main

Charles Bochet41edcd81d8fe
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: