Skip to content

Commit e71822c

Browse files
committed
ci: add concurrency and cancel previous builds
1 parent a31dea3 commit e71822c

File tree

5 files changed

+20
-0
lines changed

5 files changed

+20
-0
lines changed

.github/workflows/docker.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
# yaml-language-server: $schema=https://www.schemastore.org/github-workflow.json
33
name: latest
44

5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
7+
cancel-in-progress: true
8+
59
"on":
610
workflow_dispatch:
711
push:

.github/workflows/v3.10.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
# yaml-language-server: $schema=https://www.schemastore.org/github-workflow.json
33
name: v3.10
44

5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
7+
cancel-in-progress: true
8+
59
"on":
610
workflow_dispatch:
711
push:

.github/workflows/v3.11.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
# yaml-language-server: $schema=https://www.schemastore.org/github-workflow.json
33
name: v3.11
44

5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
7+
cancel-in-progress: true
8+
59
"on":
610
workflow_dispatch:
711
push:

.github/workflows/v3.12.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
# yaml-language-server: $schema=https://www.schemastore.org/github-workflow.json
33
name: v3.12
44

5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
7+
cancel-in-progress: true
8+
59
"on":
610
workflow_dispatch:
711
push:

.github/workflows/v3.9.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
# yaml-language-server: $schema=https://www.schemastore.org/github-workflow.json
33
name: v3.9
44

5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
7+
cancel-in-progress: true
8+
59
"on":
610
workflow_dispatch:
711
push:

0 commit comments

Comments
 (0)