Skip to content

Commit aaf42e3

Browse files
authored
cancel previous running actions if new commits are pushed (#1540)
* cancel previous running actions if new commits are pushed * cancel-in-progress for rust tests * cancel-in-progress for c-bindings workflow * cancel-in-progress for test GitHub actions
1 parent be1fca5 commit aaf42e3

File tree

5 files changed

+20
-0
lines changed

5 files changed

+20
-0
lines changed

.github/workflows/c-bindings.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
merge_group:
88
branches: [ "main" ]
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: true
13+
1014
jobs:
1115
c-bundle-validate:
1216
runs-on: ubuntu-latest

.github/workflows/extensions-test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ env:
1111
CARGO_TERM_COLOR: always
1212
PROTOC_VERSION: 3.23.4
1313

14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
16+
cancel-in-progress: true
17+
1418
jobs:
1519
c-tests:
1620
runs-on: ubuntu-latest

.github/workflows/golang-bindings.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
merge_group:
88
branches: [ "main" ]
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: true
13+
1014
jobs:
1115
golang-bindings:
1216

.github/workflows/rust.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ env:
1414
# we need to fix before we can enable this.
1515
# RUSTFLAGS: "-D warnings"
1616

17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
19+
cancel-in-progress: true
20+
1721
jobs:
1822
checks:
1923
runs-on: ubuntu-latest

.github/workflows/sqlite3.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ on:
1313
paths:
1414
- "libsql-sqlite3/**"
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
18+
cancel-in-progress: true
19+
1620
jobs:
1721
make-sqlite3:
1822
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)