Skip to content

Commit 33908da

Browse files
committed
Add auto cancel in progress
This will cancel CI and docs workflows currently running when a newer version is triggered.
1 parent 580b601 commit 33908da

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
- 'mithril-explorer/**'
1010
- '.github/workflows/docs.yml'
1111

12+
concurrency:
13+
group: ci-build-test-${{ github.ref }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
build-ubuntu-X64:
1418
runs-on: ubuntu-22.04

.github/workflows/docs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches: # only run on branch push, tag push will be ignored
66
- '**'
77

8+
concurrency:
9+
group: ci-docs-${{ github.ref }}
10+
cancel-in-progress: true
11+
812
jobs:
913
cargo-doc:
1014
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)