Skip to content

Commit

Permalink
Merge pull request #2641 from python-trio/update-ci
Browse files Browse the repository at this point in the history
Add "concurrency" to CI so old unused CI runs automatically get cancelled
  • Loading branch information
webknjaz committed Jun 5, 2023
2 parents 7a35c5b + 93bb27b commit bec7cc6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- "dependabot/**"
pull_request:

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && format('-{0}', github.sha) || '' }}
cancel-in-progress: true

jobs:
Windows:
name: 'Windows (${{ matrix.python }}, ${{ matrix.arch }}${{ matrix.extra_name }})'
Expand Down

0 comments on commit bec7cc6

Please sign in to comment.