diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 417e0a8b..01d231fa 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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 the ref: refs/pull//head for a pull request, the branch for a push, so no two refs cancel each other's runs. +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + jobs: tests: runs-on: docker-host