You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by li...@apache.org on 2026/07/03 08:45:42 UTC

(iceberg-rust) branch main updated: Restrict trigger push branch for GitHub Workflow (#2757)

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

blackmwk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-rust.git


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

commit 46fd3171563d4abad2240fbdd063f882b896c8dd
Author: Aurélien Pupier <ap...@ibm.com>
AuthorDate: Fri Jul 3 10:45:37 2026 +0200

    Restrict trigger push branch for GitHub Workflow (#2757)
    
    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
    
    ## Which issue does this PR close?
    
    <!--
    We generally require a GitHub issue to be filed for all bug fixes and
    enhancements and this helps us generate change logs for our releases.
    You can link an issue to this PR using the GitHub syntax. For example
    `Closes #123` indicates that this PR will close issue #123.
    -->
    
    - Closes #.
    
    ## What changes are included in this PR?
    
    <!--
    Provide a summary of the modifications in this PR. List the main changes
    such as new features, bug fixes, refactoring, or any other updates.
    -->
    
    ## Are these changes tested?
    
    <!--
    Specify what test covers (unit test, integration test, etc.).
    
    If tests are not included in your PR, please explain why (for example,
    are they covered by existing tests)?
    -->
    
    Signed-off-by: Aurélien Pupier <ap...@ibm.com>
    Co-authored-by: blackmwk <li...@outlook.com>
---
 .github/workflows/audit.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml
index 63019d8c7..5de30554c 100644
--- a/.github/workflows/audit.yml
+++ b/.github/workflows/audit.yml
@@ -23,6 +23,8 @@ concurrency:
 
 on:
   push:
+    branches:
+      - main
     paths:
       - "**/Cargo.toml"
       - "**/Cargo.lock"