From 0db006d28efd88650dabcf85c8000d788128262a Mon Sep 17 00:00:00 2001 From: Andrii Nakryiko Date: Thu, 22 Jul 2021 23:19:46 -0700 Subject: [PATCH] ci: add cancel-in-progress behavior for main test CI workflow Make sure that only the latest enqueued workflow is running for any given PR and/or branch. Signed-off-by: Andrii Nakryiko --- .github/workflows/test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ec26e93..d056d62 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,6 +6,9 @@ on: schedule: - cron: '0 18 * * *' +concurrency: + group: ci-test-${{ github.head_ref }} + cancel-in-progress: true jobs: vmtest: