This is an automated email from the ASF dual-hosted git repository.

chenyulin0719 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-k8shim.git


The following commit(s) were added to refs/heads/master by this push:
     new 8a4585f7 [YUNIKORN-2893] Apply "cancel-in-progress" feature for each 
PR in Github Action (#920)
8a4585f7 is described below

commit 8a4585f7ee29810bfed898a09a2c0237e5629829
Author: Tzu-Hua Lan <[email protected]>
AuthorDate: Thu Oct 3 12:34:24 2024 +0000

    [YUNIKORN-2893] Apply "cancel-in-progress" feature for each PR in Github 
Action (#920)
    
    Apply the "cancel-in-progress" to automatically cancel previous build.
    
    Closes: #920
    
    Signed-off-by: Yu-Lin Chen <[email protected]>
---
 .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 066246f8..deeea5e0 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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to