From c20b3a002770e028800dd27df9b9bc67bcb1cf0d Mon Sep 17 00:00:00 2001 From: yihau Date: Thu, 30 Nov 2023 11:35:50 +0800 Subject: [PATCH] ci: cancel cargo clippy on Github Actions when new commits comming --- .github/workflows/cargo.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/cargo.yml b/.github/workflows/cargo.yml index 556346ba87d23c..54566f705cb160 100644 --- a/.github/workflows/cargo.yml +++ b/.github/workflows/cargo.yml @@ -16,6 +16,10 @@ on: - ".github/scripts/cargo-clippy-before-script.sh" - ".github/workflows/cargo.yml" +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + env: SHELL: /bin/bash SCCACHE_GHA_ENABLED: "true"