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

mawiesne pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/opennlp-sandbox.git


The following commit(s) were added to refs/heads/master by this push:
     new 0625bcf  Avoid running CI twice per category (push/pull_request) Adds 
pattern for 'experimental' branch names
0625bcf is described below

commit 0625bcf2d9649ff765bedb4f4c2718c14a2fb741
Author: Martin Wiesner <[email protected]>
AuthorDate: Tue Dec 10 11:33:36 2024 +0100

    Avoid running CI twice per category (push/pull_request)
    Adds pattern for 'experimental' branch names
---
 .github/workflows/maven.yml | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 46203f8..36c0a4f 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -15,7 +15,15 @@
 
 name: Java CI
 
-on: [push, pull_request]
+on:
+  # Run CI on Pushes to "master"" or on pull requests targeting "master".
+  push:
+    branches:
+      - master
+      - 'experimental/**'
+  pull_request:
+    branches:
+      - master
 
 jobs:
   build:

Reply via email to