From 80e267f0d1d36036e7510030b2a1eac40620c3c3 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Mar 2026 07:40:09 +0000 Subject: [PATCH] Limit push trigger to main in check-recent workflow push: branches: '**' caused both the push event (9-worker matrix) and the pull_request event (1-worker matrix) to fire simultaneously on every PR commit. Restricting push to [main] means PR pushes only trigger the pull_request path (1 worker), while direct pushes to main still get the full 9-worker matrix. https://claude.ai/code/session_01XHWLohiSTdZvCutwD7ag2b --- .github/workflows/check-current-testthat.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-current-testthat.yaml b/.github/workflows/check-current-testthat.yaml index 676a01e04..0a318cc8d 100644 --- a/.github/workflows/check-current-testthat.yaml +++ b/.github/workflows/check-current-testthat.yaml @@ -29,10 +29,11 @@ on: pull_request: - # run in each PR in this repo + # run in each PR in this repo (1 worker, see matrix logic below) branches: '**' push: - branches: '**' + # only on main; pushing to a PR branch is already covered by pull_request above + branches: [main] schedule: # also run a schedule everyday at 1 AM. # this is to check that all dependencies are still available (see R/zzz.R)