Implement merge_group trigger and concurrency control

- Add merge_group event to oxipng.yml and docker.yml for native
  Merge Queue support.
- Implement concurrency groups with cancel-in-progress: true to
  terminate obsolete builds on new pushes.
- Remove explicit pull_request types to allow default triggers
  (including reopened).
This commit is contained in:
vlakoff 2026-04-23 00:17:37 +02:00
parent e167b04b85
commit 2a69093136
No known key found for this signature in database
GPG key ID: D01DA5A5B698E332
3 changed files with 14 additions and 6 deletions

View file

@ -5,6 +5,10 @@ on:
tags:
- "v*.*.*"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
actions: read
contents: write

View file

@ -6,9 +6,7 @@ on:
tags:
- 'v*.*.*'
pull_request:
types:
- opened
- synchronize
merge_group:
workflow_dispatch:
inputs:
use_cache:
@ -17,6 +15,10 @@ on:
type: boolean
default: true
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
uses: docker/github-builder/.github/workflows/build.yml@v1

View file

@ -3,11 +3,13 @@ name: oxipng
on:
push:
pull_request:
types:
- opened
- synchronize
merge_group:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
ci:
name: CI