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

wgtmac pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/parquet-format.git


The following commit(s) were added to refs/heads/master by this push:
     new 21ecc2b  Restrict trigger push branch for GitHub Workflow (#594)
21ecc2b is described below

commit 21ecc2b0f5786070561ae0d34152230853c83e2b
Author: AurĂ©lien Pupier <[email protected]>
AuthorDate: Tue Jul 14 11:17:34 2026 +0200

    Restrict trigger push branch for GitHub Workflow (#594)
    
    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/test.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 31adba0..d0f3c2a 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -19,6 +19,8 @@ name: Test
 
 on:
   push:
+    branches:
+      - master
     paths-ignore:
       - '**/*.md'
       - 'doc/images/**'

Reply via email to