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

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


The following commit(s) were added to refs/heads/main by this push:
     new 21cd0161d chore(ci): Restrict trigger push branch for GitHub Workflow 
(#4458)
21cd0161d is described below

commit 21cd0161dcd719053537fc9988f454372f935572
Author: AurĂ©lien Pupier <[email protected]>
AuthorDate: Fri Jul 3 01:21:04 2026 +0200

    chore(ci): Restrict trigger push branch for GitHub Workflow (#4458)
    
    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
    
    Signed-off-by: AurĂ©lien Pupier <[email protected]>
---
 .github/workflows/csharp.yml   | 2 ++
 .github/workflows/dev_adbc.yml | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/.github/workflows/csharp.yml b/.github/workflows/csharp.yml
index 4b77beb2a..c2ccb2c84 100644
--- a/.github/workflows/csharp.yml
+++ b/.github/workflows/csharp.yml
@@ -19,6 +19,8 @@ name: C#
 
 on:
   push:
+    branches-ignore:
+      - 'dependabot/**'
     paths:
       - '.github/workflows/csharp.yml'
       - 'ci/scripts/csharp_*'
diff --git a/.github/workflows/dev_adbc.yml b/.github/workflows/dev_adbc.yml
index f80379d41..d5e97ab68 100644
--- a/.github/workflows/dev_adbc.yml
+++ b/.github/workflows/dev_adbc.yml
@@ -25,6 +25,8 @@ on:
       - "dev/**"
       - ".github/workflows/dev_adbc.yml"
   push:
+    branches-ignore:
+      - 'dependabot/**'
     paths:
       - "dev/**"
       - ".github/workflows/dev_adbc.yml"

Reply via email to