Skip to content

Commit 2d76387

Browse files
committed
ci: waste less cpu cycles
When a pull request is force-pushed to so that a new job is created, cancel the previous running job.
1 parent dc77cda commit 2d76387

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/pr-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
name: Pull request CI
55
on: pull_request
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
8+
cancel-in-progress: true
69

710
jobs:
811
pr-head-ci:

0 commit comments

Comments
 (0)