mirror of https://github.com/OpenTTD/OpenTTD.git
Fix: [CI] preview for one PR could cancel the preview of another (#11121)
This commit is contained in:
parent
323dd619bb
commit
dadcade81c
|
@ -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…
Reference in New Issue