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:34 UTC
(commons-graph) branch fix/run-ci-on-master-only created (now c1137d5)
This is an automated email from the ASF dual-hosted git repository.
pkarwasz pushed a change to branch fix/run-ci-on-master-only
in repository https://gitbox.apache.org/repos/asf/commons-graph.git
at c1137d5 Only run CI on `master` branch
This branch includes the following new commits:
new c1137d5 Only run CI on `master` branch
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(commons-graph) 01/01: Only run CI on `master` branch
Posted by pk...@apache.org.
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