Cancel a pull request's older CI runs when it gets a new push #601

Merged
lilleman merged 3 commits from ci-cancel-superseded into main 2026-11-18 14:28:40 +01:00
Showing only changes of commit 5bc69f1689 - Show all commits
+6
View File
@@ -1,6 +1,12 @@
name: CI
on: pull_request
# A push to a pull request cancels that pull request's older runs; the merge gate reads only the head commit's status.
# The group is per pull request, so pull requests never cancel each other's runs.
concurrency:
group: ci-pr-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
tests:
runs-on: docker-host