Skip to content

Commit 1b7c3c3

Browse files
anton-lnatolambert
authored andcommitted
[CI] Cancel pending jobs for PRs on new commits (#324)
Cancel pending jobs for PRs on new commits
1 parent a21dd7d commit 1b7c3c3

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/pr_quality.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
branches:
99
- main
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
check_code_quality:
1317
runs-on: ubuntu-latest

.github/workflows/pr_tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches:
66
- main
77

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
10+
cancel-in-progress: true
11+
812
env:
913
HF_HOME: /mnt/cache
1014
OMP_NUM_THREADS: 8

0 commit comments

Comments
 (0)