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

kwin pushed a commit to branch feature/restrict-gha-triggers
in repository https://gitbox.apache.org/repos/asf/maven-resolver.git

commit 1df908fcc98315ae0f85ddd77e6370d8e7821c9a
Author: Konrad Windszus <[email protected]>
AuthorDate: Sat Jul 18 14:53:16 2026 +0200

    Only trigger builds once
    
    Either for push to master or for PR targeting master. Not for push to
    arbitrary other branches.
---
 .github/workflows/maven-verify.yml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/.github/workflows/maven-verify.yml 
b/.github/workflows/maven-verify.yml
index fa02b6dcc..f4eb6c16a 100644
--- a/.github/workflows/maven-verify.yml
+++ b/.github/workflows/maven-verify.yml
@@ -19,7 +19,14 @@ name: Verify
 
 on:
   push:
+    branches: [ master ]
   pull_request:
+    branches: [ master ]
+
+# allow single build per branch or PR
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
 
 jobs:
   build:

Reply via email to