From 6c6a36ec496ff130c17ad467fe24fe96198d5a4b Mon Sep 17 00:00:00 2001 From: Tpt Date: Mon, 29 Aug 2022 17:27:11 +0200 Subject: [PATCH] Avoids running duplicated workflows --- .github/workflows/artifacts.yml | 4 ++++ .github/workflows/tests.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index fe7b6f04..b5cdd0da 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -5,6 +5,10 @@ on: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: python_doc: runs-on: ubuntu-latest diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3ab86245..ab49582b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,6 +10,10 @@ on: schedule: - cron: "0 0 * * 0" +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: fmt: runs-on: ubuntu-latest