Skip to content

Commit

Permalink
GitHub Actions: cancel outdated jobs (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c authored Oct 16, 2021
1 parent 2274c96 commit cf52293
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
pull_request:
branches: [ main ]

concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:

tox:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
schedule:
- cron: '0 11 * * 6'

concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
CodeQL-Build:

Expand Down

0 comments on commit cf52293

Please sign in to comment.