From 9e472c9827997b07bf8469d6b68e043d8cb69474 Mon Sep 17 00:00:00 2001 From: jepson2k <55201008+Jepson2k@users.noreply.github.com> Date: Sun, 28 Jun 2026 13:05:29 -0400 Subject: [PATCH] ci: scope push trigger to main only MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit push fired on every branch, so each push to a PR branch spawned a redundant run alongside pull_request — the source of the 'fixed it, re-ran one run, the twin is still red' churn on #20/#21. pull_request already covers PR branches. Co-Authored-By: Claude Opus 4.8 --- .github/workflows/tests.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7a06f83..fe784af 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,12 +2,12 @@ name: tests on: workflow_dispatch: + # Scope push to main only — PR branches are covered by pull_request, so this + # avoids a redundant second run (and the "re-ran one, the twin still red" trap) + # on every push to a PR branch. push: - paths: - - '**' + branches: [main] pull_request: - paths: - - '**' jobs: lint: