mirror of
https://github.com/GTNewHorizons/GTNH-Actions-Workflows.git
synced 2026-04-15 07:49:54 +02:00
Cancel previous runs for a workflow if another is started in the same pr (#61)
This commit is contained in:
parent
9d88467a59
commit
23113b1bb8
4
.github/workflows/build-and-test.yml
vendored
4
.github/workflows/build-and-test.yml
vendored
@ -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
|
||||
|
||||
4
.github/workflows/optimize-images.yml
vendored
4
.github/workflows/optimize-images.yml
vendored
@ -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
|
||||
|
||||
4
.github/workflows/release-tags.yml
vendored
4
.github/workflows/release-tags.yml
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user