From d872b2180066f718b376a98820c61a77b9367b3c Mon Sep 17 00:00:00 2001 From: 3pointer Date: Fri, 29 Oct 2021 17:34:50 +0800 Subject: [PATCH] br: cancel in progress actions (#28912) --- .github/workflows/br_compatible_test.yml | 5 +++++ .github/workflows/compile_br.yaml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/br_compatible_test.yml b/.github/workflows/br_compatible_test.yml index e72581856abbd..b6ef8aa7bd1cb 100644 --- a/.github/workflows/br_compatible_test.yml +++ b/.github/workflows/br_compatible_test.yml @@ -28,6 +28,11 @@ on: - '!br/tests/**' - '!br/docker/**' +# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency. +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + jobs: check: runs-on: ubuntu-latest diff --git a/.github/workflows/compile_br.yaml b/.github/workflows/compile_br.yaml index fed0d2a7af279..da5ef43198ffc 100644 --- a/.github/workflows/compile_br.yaml +++ b/.github/workflows/compile_br.yaml @@ -29,6 +29,11 @@ on: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency. +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + jobs: compile: name: Compile for ${{ matrix.os }} / ${{ matrix.target}}