Skip to content

Commit 4df7d8f

Browse files
authored
Merge pull request #46 from LedgerHQ/clean/cancel_ci
[ci][clean] Cancel previous workflows on a reference (branch, tag, ..…
2 parents ca64ca5 + 683101c commit 4df7d8f

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

.github/workflows/build_and_tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ on:
1616
- 'src/**'
1717
- 'tests/**'
1818
- .github/workflows/build_and_tests.yml
19+
# Cancel previous runs on this reference
20+
concurrency:
21+
group: ${{ github.workflow }}-${{ github.ref }}
22+
cancel-in-progress: true
23+
1924

2025
jobs:
2126

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
- tests
1616
schedule:
1717
- cron: '35 0 * * 5'
18+
# Cancel previous runs on this reference
19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.ref }}
21+
cancel-in-progress: true
1822

1923
jobs:
2024
analyze:

.github/workflows/fast-checks.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
- develop
88
- master
99
pull_request:
10+
# Cancel previous runs on this reference
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
1014

1115
jobs:
1216
ruff:

0 commit comments

Comments
 (0)