From 000cabb9880e87a9740d9b8985eb355f45d7489c Mon Sep 17 00:00:00 2001 From: Christian Adell Date: Thu, 8 Sep 2022 09:20:07 +0200 Subject: [PATCH] Improve CI concurrency --- .github/workflows/ci.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2571b368..e78e4d8f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,8 +1,16 @@ --- name: "CI" -on: # yamllint disable-line rule:truthy - - "push" - - "pull_request" +concurrency: # Cancel any existing runs of this workflow for this same PR + group: "${{ github.workflow }}-${{ github.ref }}" + cancel-in-progress: true +on: # yamllint disable + push: + branches: + - "main" + - "develop" + tags: + - "v*" + pull_request: ~ jobs: black: runs-on: "ubuntu-20.04"