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

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


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

commit c2b5565c97ed0850360c2f88e42149fc516bf8a4
Author: Tzu-Hua Lan <[email protected]>
AuthorDate: Fri Oct 4 12:34:07 2024 -0500

    [YUNIKORN-2893] Apply "cancel-in-progress" feature for each PR in Github 
Action (#209)
    
    Closes: #209
    
    Signed-off-by: Craig Condit <[email protected]>
---
 .github/workflows/main.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index de57a9b..cd9e192 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -9,6 +9,10 @@ on:
       - master
   workflow_dispatch: {}
 
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.ref }}
+  cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
+
 jobs:
   build:
     runs-on: ubuntu-latest


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

Reply via email to