Skip to content

Commit 4f2f20c

Browse files
committed
Add concurrency for GitHub Actions
1 parent 3af3581 commit 4f2f20c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
pull_request:
1111
branches: [ main, maint-1.3 ]
1212

13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.event.number || github.run_id }}
15+
cancel-in-progress: true
1316

1417
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1518
jobs:

.github/workflows/codeql.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
schedule:
1010
- cron: '32 17 * * 0'
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.number || github.run_id }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
analyze:
1418
name: Analyze

0 commit comments

Comments
 (0)