From 6a1edeb694f775882f87b1824690e002cee98329 Mon Sep 17 00:00:00 2001 From: messense Date: Thu, 5 Jan 2023 11:03:26 +0800 Subject: [PATCH] Cancel outdated in-progress workflow automatically (#1652) --- .github/workflows/ci.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 24c7b16b0e..42eadd3883 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,6 +6,10 @@ on: pull_request: branches: [main] +concurrency: + group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + env: CARGO_INCREMENTAL: 0 CARGO_NET_RETRY: 10