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: tags:
- "v*.*.*" - "v*.*.*"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: permissions:
actions: read actions: read
contents: write contents: write

View file

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

View file

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