From 859c2b71db8e6897583be00e8da5968a9bf82f04 Mon Sep 17 00:00:00 2001 From: zaebee Date: Sat, 31 Oct 2026 11:37:16 +0000 Subject: [PATCH] ci(ui): run the UI workflow once per PR branch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ui.yml listed feat/**, fix/** and docs/** in its push trigger next to the pull_request trigger, so every push to a PR branch started it twice on one SHA. #766 showed both: UI Verification passed at 18s (push) and 22s (pull_request). ci.yml lost the same patterns in #756 for the same reason; ui.yml was missed then. Keep main and dev — a pull_request event only covers PRs into main — and let the path filter do the rest. --- .github/workflows/ui.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ui.yml b/.github/workflows/ui.yml index 359415d4..fd3015ca 100644 --- a/.github/workflows/ui.yml +++ b/.github/workflows/ui.yml @@ -8,8 +8,14 @@ name: UI # Path-filtered so Python-only changes do not pay for a bun install, and the # workflow file itself is in the filter so an edit to it runs it. on: + # Trunk only, for the reason ci.yml gives: listing the PR branch patterns + # here too made every push to a PR branch start this workflow twice on one + # SHA (a push run and a pull_request run), putting two identical "UI + # Verification" checks on the PR — seen on #766, 18s and 22s. The + # `pull_request` run below covers a PR into main; `dev` stays because a + # pull_request event only covers PRs into `main`. push: - branches: [ main, dev, "feat/**", "fix/**", "docs/**" ] + branches: [ main, dev ] paths: [ "ui/**", ".github/workflows/ui.yml" ] pull_request: branches: [ main ]