Fix: [CI] preview for one PR could cancel the preview of another (#11121)

This commit is contained in:
Patric Stout 2023-07-08 14:10:15 +02:00 committed by GitHub
parent 323dd619bb
commit dadcade81c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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')) }}