From e62618071ce4c87636dee1bdc0aed797c333a116 Mon Sep 17 00:00:00 2001 From: Vladimir Milosevic <157983820+vmilosevic@users.noreply.github.com> Date: Thu, 19 Dec 2024 15:24:11 +0100 Subject: [PATCH] Add workflow concurrency check (#124) 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 ed5ae1f..34ea5ef 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