Skip to content

Commit

Permalink
Cancel stale workflows when starting a new one.
Browse files Browse the repository at this point in the history
With this change, we will cancel any pending and in-progress CI jobs
when a new one is pushed. This will help a bit with the CI queue by
preventing tons and tons of queued up CI jobs when pushing new commits
to a pull request.
  • Loading branch information
rwjblue committed Dec 13, 2021
1 parent 0025ff1 commit 6ad8d7c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -14,6 +14,10 @@ on:
schedule:
- cron: '0 3 * * *' # daily, at 3am

concurrency:
group: ci-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
linting:
name: Linting
Expand Down

0 comments on commit 6ad8d7c

Please sign in to comment.