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

pull/603/merge
Patric Stout 11 months ago committed by GitHub
parent 323dd619bb
commit dadcade81c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

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

Loading…
Cancel
Save