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

mbien pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
     new cb265831c9 cancel previous CI run on repeated PR update.
     new 7acf4bef16 Merge pull request #3932 from mbien/ci-cancel-on-update
cb265831c9 is described below

commit cb265831c97ddbf1bbec7c03074abc4a2ae26c64
Author: Michael Bien <[email protected]>
AuthorDate: Tue Apr 5 17:36:44 2022 +0200

    cancel previous CI run on repeated PR update.
---
 .github/workflows/main.yml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 4cdb31bd9a..7704ee7a1d 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -21,6 +21,12 @@ on:
   push:
   pull_request:
 
+# cancel PR workflow run if PR is updated while jobs are still running
+# if this is not a PR run (no github.head_ref defined), it won't be affected
+concurrency: 
+  group: ${{ github.head_ref || github.run_id }}
+  cancel-in-progress: true
+
 jobs:
     
 # primary build job, most other jobs use the artifact produced here


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

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to