You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ossie.apache.org by jb...@apache.org on 2026/10/10 07:01:03 UTC

(ossie) branch main updated: ci(cli): stop running CLI CI twice for a branch that has a pull request (#549)

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/ossie.git


The following commit(s) were added to refs/heads/main by this push:
     new 5bc5631f ci(cli): stop running CLI CI twice for a branch that has a pull request (#549)
5bc5631f is described below

commit 5bc5631fb908c6a0a3fe34e70bb4408567756c12
Author: Ayush Saxena <ay...@apache.org>
AuthorDate: Sat Oct 10 12:30:58 2026 +0530

    ci(cli): stop running CLI CI twice for a branch that has a pull request (#549)
    
    cli-ci.yml was the only workflow whose push and pull_request triggers carried no
    branches filter, so a push to a branch inside the repository matched both events
    and started two identical runs. Over the last 100 recorded runs, 30 of 69
    commits ran twice, each pair starting a median of three seconds apart, and eight
    further push runs fired on branches with no pull request open at all.
    
    Both triggers now filter on main, as the other eighteen *-ci.yml workflows do.
    The post-merge run is unaffected: a squash merge rewrites the SHA, so the run on
    main is a distinct commit that the push trigger still matches.
---
 .github/workflows/cli-ci.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.github/workflows/cli-ci.yml b/.github/workflows/cli-ci.yml
index 4c7a9ac8..c9946834 100644
--- a/.github/workflows/cli-ci.yml
+++ b/.github/workflows/cli-ci.yml
@@ -21,10 +21,12 @@ name: CLI CI
 
 on:
   push:
+    branches: [ "main" ]
     paths:
       - 'cli/**'
       - '.github/workflows/cli-ci.yml'
   pull_request:
+    branches: [ "main" ]
     paths:
       - 'cli/**'
       - '.github/workflows/cli-ci.yml'