Skip to content

Commit

Permalink
feat(ci): stop jobs if new ones of the same workflow started
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperFola committed Nov 4, 2024
1 parent eefeb78 commit 546a4b8
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.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ on:
- '.gitignore'
pull_request:

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

env:
BUILD_TYPE: Debug
SQLITE_VERSION: 3390100 # 3.39.1
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/static_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Static analysis
on:
pull_request:

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

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

0 comments on commit 546a4b8

Please sign in to comment.