From dadcade81c511dae87def5549c32f92ef19a5f9c Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Sat, 8 Jul 2023 14:10:15 +0200 Subject: [PATCH] Fix: [CI] preview for one PR could cancel the preview of another (#11121) --- .github/workflows/preview-build.yml | 4 ---- .github/workflows/preview.yml | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml index 8b1360cdec..a968899edf 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -10,10 +10,6 @@ on: description: Account ID to upload a preview to Cloudflare Pages required: true -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number }} - cancel-in-progress: true - jobs: preview: name: Build preview diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 590d8d392a..97ab31955b 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -8,6 +8,10 @@ on: branches: - master +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number }} + cancel-in-progress: true + jobs: preview: if: ${{ (github.event.action == 'labeled' && github.event.label.name == 'preview') || (github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'preview')) }}