From 7b00d34342ae08142b6818a8aa8cb8dc14c69e30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Wed, 9 Apr 2025 20:34:23 +0200 Subject: [PATCH] Fix condition --- .github/workflows/deploy-preview.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-preview.yaml b/.github/workflows/deploy-preview.yaml index 91b76a1e2..db000bf15 100644 --- a/.github/workflows/deploy-preview.yaml +++ b/.github/workflows/deploy-preview.yaml @@ -200,7 +200,7 @@ jobs: name: Visual Testing v2 (Cloudflare) needs: deploy-v2-cloudflare timeout-minutes: 10 - if: startsWith(github.ref_name, 'refs/heads/cloudflare/') + if: startsWith(github.head_ref || github.ref_name, 'refs/heads/cloudflare/') steps: - name: Checkout uses: actions/checkout@v4 @@ -263,7 +263,7 @@ jobs: name: Visual Testing Customers v2 (Cloudflare) needs: deploy-v2-cloudflare timeout-minutes: 8 - if: startsWith(github.ref_name, 'refs/heads/cloudflare/') + if: startsWith(github.head_ref || github.ref_name, 'refs/heads/cloudflare/') steps: - name: Checkout uses: actions/checkout@v4