You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by pk...@apache.org on 2025/04/11 09:34:35 UTC

(commons-graph) 01/01: Only run CI on `master` branch

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

pkarwasz pushed a commit to branch fix/run-ci-on-master-only
in repository https://gitbox.apache.org/repos/asf/commons-graph.git

commit c1137d5b4ccaf5cdf8e3e35af7fddfa68d581d9a
Author: Piotr P. Karwasz <pk...@apache.org>
AuthorDate: Fri Apr 11 11:34:15 2025 +0200

    Only run CI on `master` branch
    
    Currently, the CI is configured to run on all the branches of this repository. For PRs from other branches (like those created by Dependabot), this means that the CI runs twice.
    
    This change limits CI builds to the `master` branch.
---
 .github/workflows/maven.yml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 5df717a..2a01ceb 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -15,7 +15,12 @@
 
 name: Java CI
 
-on: [push, pull_request, workflow_dispatch]
+on:
+  push:
+    branches:
+      - "master"
+  pull_request:
+  workflow_dispatch:
 
 permissions:
   contents: read