Skip to content

Commit

Permalink
Cancel currently running workflows if a new workflow runs (#670)
Browse files Browse the repository at this point in the history
  • Loading branch information
mauvilsa authored Feb 5, 2025
1 parent 4b956d4 commit f7bb89e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
schedule:
- cron: "57 5 * * 3" # M H d m w (Every Wednesday at 5:57 AM)

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
analyze:
name: Analyze
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
pull_request_target:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:

linux:
Expand Down

0 comments on commit f7bb89e

Please sign in to comment.