From b3974891f1e79ef2479d67c38003ab93dab1aa0d Mon Sep 17 00:00:00 2001 From: David Anthoff Date: Mon, 8 Aug 2022 11:55:10 -0700 Subject: [PATCH] Add concurrency control to GitHub workflow runs --- .github/workflows/test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 169f8945..97151185 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,6 +9,9 @@ on: - 'master' - 'release-*' tags: '*' +concurrency: + group: ${{ github.head_ref || github.ref_name || github.run_id }} + cancel-in-progress: true jobs: test: runs-on: ${{ matrix.os }}