From 76514178b6ea781fc0fdd68f57c6ac6ff0d0ab64 Mon Sep 17 00:00:00 2001 From: link2xt Date: Thu, 23 Feb 2023 18:45:55 +0000 Subject: [PATCH] ci: do not run CI multiple times on the same branch Especially for PRs, if the branch is updated multiple times, only the last commit should be tested. --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 449161d7f..fe1c4f8cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,11 @@ name: Rust CI +# Cancel previously started workflow runs +# when the branch is updated. +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + on: pull_request: push: