Skip to content

Commit

Permalink
ci: automatically cancel jobs when new commits are pushed
Browse files Browse the repository at this point in the history
There is no point in keeping multiple jobs running on a pull request
when new commits are pushed. Automatically cancel them to avoid
confusion.

Link: getpatchwork/patchwork@09939ba107bde8
Signed-off-by: Robin Jarry <robin@jarry.cc>
  • Loading branch information
rjarry committed Nov 7, 2024
1 parent 9715e3a commit fbd3ab1
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 @@ -9,6 +9,10 @@ on:
- main
pull_request:

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

jobs:
build:
runs-on: ubuntu-24.04
Expand Down

0 comments on commit fbd3ab1

Please sign in to comment.