You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafusion.apache.org by ti...@apache.org on 2026/07/02 19:49:32 UTC

(datafusion-python) branch main updated: Restrict trigger push branch for GitHub Workflow (#1619)

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

timsaucer pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion-python.git


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

commit 5b341d36ff14433be7989bdb0061dfc0ae2eca10
Author: Aurélien Pupier <ap...@ibm.com>
AuthorDate: Thu Jul 2 21:49:25 2026 +0200

    Restrict trigger push branch for GitHub Workflow (#1619)
    
    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 <ap...@ibm.com>
---
 .github/workflows/dev.yml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml
index 2c8ecbc5..841bf205 100644
--- a/.github/workflows/dev.yml
+++ b/.github/workflows/dev.yml
@@ -16,7 +16,12 @@
 # under the License.
 
 name: Dev
-on: [push, pull_request]
+on:
+  push:
+    branches:
+      - main
+      - branch-*
+  pull_request:
 
 jobs:
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org