Skip to content

ci: stop running every pull request twice - #2

Merged
TMHSDigital merged 1 commit into
mainfrom
ci/stop-double-running
Sep 22, 2026
Merged

TMHSDigital merged 1 commit into
mainfrom
ci/stop-double-running

Conversation

@TMHSDigital

Copy link
Copy Markdown
Owner

PR #1 showed thirteen checks. Four of them were duplicates: a branch pushed to
origin and then opened as a pull request fires both the push and the
pull_request trigger, and ci.yml filtered neither, so all four matrix jobs
ran twice.

The push trigger is now restricted to main, the only branch where a push is
not already covered by a pull request. pull_request stays unfiltered so a
request from any branch or fork is still checked.

This pull request is its own test: it should show four CI jobs rather than
eight. A direct push to main still runs the gate, which is verified after
merge.

A branch pushed to origin and then opened as a pull request fired both the push
and the pull_request trigger, so all four jobs ran twice on every pull request.
Thirteen checks appeared on the first one where seven would have done.

The push trigger is now restricted to main, which is the only branch where a
push is not already covered by a pull request. pull_request stays unfiltered so
a request from any branch, including a fork, is still checked.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@TMHSDigital
TMHSDigital merged commit 9e28246 into main Sep 22, 2026
9 checks passed
@TMHSDigital
TMHSDigital deleted the ci/stop-double-running branch September 22, 2026 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant