From eae14d44bf046b4d9ee9e4e48a7db3cf14e6fd94 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 18 Mar 2026 23:09:02 +0000 Subject: [PATCH] Restrict dev-versions and old-tinytest CI to main branch only Both workflows were triggering on every push to every branch. Narrowed push trigger to [main] so they only run after merging, not on every feature/PR branch push. https://claude.ai/code/session_01XHWLohiSTdZvCutwD7ag2b --- .github/workflows/check-current-testthat-dev-versions.yaml | 2 +- .github/workflows/check-old-tinytest.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check-current-testthat-dev-versions.yaml b/.github/workflows/check-current-testthat-dev-versions.yaml index 4899143bb..ea4bc6f04 100644 --- a/.github/workflows/check-current-testthat-dev-versions.yaml +++ b/.github/workflows/check-current-testthat-dev-versions.yaml @@ -29,7 +29,7 @@ on: push: - branches: '**' + 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) diff --git a/.github/workflows/check-old-tinytest.yaml b/.github/workflows/check-old-tinytest.yaml index 4ad26b4b3..f6f97c3a5 100644 --- a/.github/workflows/check-old-tinytest.yaml +++ b/.github/workflows/check-old-tinytest.yaml @@ -29,8 +29,8 @@ on: push: - # only run after a git push on any branch in this repo - branches: '**' + # only run after a git push on the main branch + branches: [main] name: check-old