Skip to content

Commit 013bf0d

Browse files
committed
Using concurrency instead of a separate cancel workflow
1 parent 1ec072a commit 013bf0d

File tree

4 files changed

+13
-31
lines changed

4 files changed

+13
-31
lines changed

.github/workflows/cancel_workflows.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/ci_devtests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ on:
1414
# run every Monday at 5am UTC
1515
- cron: '0 5 * * 1'
1616

17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: true
20+
1721
jobs:
1822
tests:
1923
name: ${{ matrix.name }}

.github/workflows/ci_tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ on:
1414
# run every Monday at 5am UTC
1515
- cron: '0 5 * * 1'
1616

17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: true
20+
21+
1722
jobs:
1823
tests:
1924
name: ${{ matrix.name }}

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
# For most projects, this workflow file will not need changing; you simply need
2-
# to commit it to your repository.
3-
#
4-
# You may wish to alter this file to override the set of languages analyzed,
5-
# or to provide custom queries or build logic.
6-
#
7-
# ******** NOTE ********
8-
# We have attempted to detect the languages in your repository. Please check
9-
# the `language` matrix defined below to confirm you have the correct set of
10-
# supported CodeQL languages.
11-
#
121
name: "CodeQL"
132

143
on:
@@ -18,6 +7,10 @@ on:
187
# The branches below must be a subset of the branches above
198
branches: [ main ]
209

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
2114
jobs:
2215
analyze:
2316
name: Analyze
@@ -27,9 +20,6 @@ jobs:
2720
fail-fast: false
2821
matrix:
2922
language: [ 'python' ]
30-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
31-
# Learn more:
32-
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
3323

3424
steps:
3525
- name: Checkout repository

0 commit comments

Comments
 (0)