Cancel previous runs for a workflow if another is started in the same pr (#61)

This commit is contained in:
Caedis 2026-03-05 00:28:44 -06:00 committed by GitHub
parent 9d88467a59
commit 23113b1bb8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 12 additions and 0 deletions

View File

@ -22,6 +22,10 @@ on:
default: false
type: boolean
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
runs-on: ubuntu-24.04

View File

@ -3,6 +3,10 @@ name: Check for image compression
on:
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
compress:
name: Compress and make a PR if needed

View File

@ -21,6 +21,10 @@ on:
default: "setupCIWorkspace"
type: string
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-24.04