From 5a9da9fb07ad3fa8e3522e69f9bbbf487bf65bba Mon Sep 17 00:00:00 2001 From: Vladimir Milosevic <157983820+vmilosevic@users.noreply.github.com> Date: Thu, 19 Dec 2024 14:50:11 +0100 Subject: [PATCH] Add workflow concurrency check (#1630) Add concurrency check, new workflows triggered on the same branch should cancel old ones in progress. https://github.com/tenstorrent/tt-mlir/issues/1619 --- .github/workflows/on-pr.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/on-pr.yml b/.github/workflows/on-pr.yml index f3e30ac80..3dd1aae93 100644 --- a/.github/workflows/on-pr.yml +++ b/.github/workflows/on-pr.yml @@ -5,6 +5,10 @@ on: pull_request: branches: [ "main" ] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: pre-commit: uses: ./.github/workflows/pre-commit.yml