Skip to content

Commit 29bc8da

Browse files
committed
chore(ci): cancel superseded PR workflow runs
Add a concurrency group keyed by PR number with cancel-in-progress enabled, so pushing new commits to a PR cancels any still-running checks from earlier commits. Saves runner minutes and gives quicker feedback on the latest commit.
1 parent a10e4d6 commit 29bc8da

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/on-pull-request.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ on:
33
pull_request:
44
types: [opened, reopened, synchronize]
55

6+
concurrency:
7+
group: pr-${{ github.event.pull_request.number }}
8+
cancel-in-progress: true
9+
610
jobs:
711
linting-and-checks:
812
name: "Linting and checks"

0 commit comments

Comments
 (0)