From b870b0cd0a18d696b02ea339b8665b33aab496c2 Mon Sep 17 00:00:00 2001 From: Tzu-Hua Lan Date: Fri, 4 Oct 2024 06:25:29 +0000 Subject: [PATCH] [YUNIKORN-2893] Apply "cancel-in-progress" feature for each PR in Github Action (#978) Apply the "cancel-in-progress" to automatically cancel previous build. Closes: #978 Signed-off-by: Yu-Lin Chen --- .github/workflows/pre-commit.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 0c5d1fb4b..f778c9fb7 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -6,6 +6,10 @@ on: - master workflow_dispatch: {} +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number }} + cancel-in-progress: true + jobs: build: runs-on: ubuntu-latest