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

jbonofre pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-java.git


The following commit(s) were added to refs/heads/main by this push:
     new c7e8e75c9 MINOR: Restrict trigger push branch for GitHub Workflow 
(#1204)
c7e8e75c9 is described below

commit c7e8e75c9978c60234dbcbd31311ac3ee2975fa6
Author: AurĂ©lien Pupier <[email protected]>
AuthorDate: Mon Jul 6 08:50:26 2026 +0200

    MINOR: Restrict trigger push branch for GitHub Workflow (#1204)
    
    Feature branches rarely need their own CI runs: the code is already
    tested when a pull request is opened against a release branch. If the
    push trigger has no branch restriction and pull_request is also
    configured, every push to a branch with an open PR runs the workflow
    twice: once for the push and once for the PR synchronisation.
    
    Always give the push trigger an explicit list of branches: this stops
    branches created from a release branch from inheriting its workflow
    runs.
    
    see
    
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=430408443#GitHubActionsRecommendedPractices-Restrictthepushtriggertospecificbranches
    
    ## What's Changed
    
    Please fill in a description of the changes here.
    
    **This contains breaking changes.** <!-- Remove this line if there are
    no breaking changes. -->
    
    Closes #NNN.
    
    Note that I needed to recreate a PR as the previous one was closed
    https://github.com/apache/arrow-java/pull/1202#issuecomment-4864548916
    
    Signed-off-by: AurĂ©lien Pupier <[email protected]>
---
 .github/workflows/dev.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml
index 25b08700f..7c590c749 100644
--- a/.github/workflows/dev.yml
+++ b/.github/workflows/dev.yml
@@ -19,7 +19,9 @@ name: Dev
 
 on:
   pull_request: {}
-  push: {}
+  push:
+    branches-ignore:
+      - dependabot/**
 
 concurrency:
   group: ${{ github.repository }}-${{ github.ref }}-${{ github.workflow }}

Reply via email to