Skip to content

Commit

Permalink
ci: cancel previously running actions
Browse files Browse the repository at this point in the history
This should prevent CI queue filling up when pushing to the same branch
multiple times in a row.
  • Loading branch information
ghedo committed Jan 16, 2025
1 parent 028f8ac commit 8433bce
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ env:
RUSTDOCFLAGS: "--cfg docsrs"
RUSTTOOLCHAIN: "nightly"

concurrency:
group: ${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

jobs:
quiche:
runs-on: ubuntu-latest
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ on:
- master
schedule:
- cron: '0 0 * * *'

name: Semgrep config

concurrency:
group: ${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

jobs:
semgrep:
name: semgrep/ci
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ env:
RUSTFLAGS: "-D warnings"
RUSTTOOLCHAIN: "stable"

concurrency:
group: ${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

jobs:
quiche:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 8433bce

Please sign in to comment.