Skip to content

Commit

Permalink
Cancel in-progress workflow runs after a push
Browse files Browse the repository at this point in the history
  • Loading branch information
Kobzol committed Jun 23, 2023
1 parent fa06a37 commit 3c2b8b0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ permissions:
defaults:
run:
shell: bash
concurrency:
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"
cancel-in-progress: true
jobs:
pr:
permissions:
Expand Down
4 changes: 4 additions & 0 deletions src/ci/github-actions/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,10 @@ defaults:
# shell is PowerShell.)
shell: bash

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

jobs:
pr:
permissions:
Expand Down

0 comments on commit 3c2b8b0

Please sign in to comment.