From 581a36a8b5c5403aadff2b5e6354f81b63db848f Mon Sep 17 00:00:00 2001 From: Casey Davenport Date: Thu, 10 Sep 2026 12:58:22 -0400 Subject: [PATCH] Stop syncing versions into master Releases come from the release branches, so the sync targets only those. --- .github/workflows/sync-versions.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync-versions.yml b/.github/workflows/sync-versions.yml index c5390ffa33..74ab5f1fd0 100644 --- a/.github/workflows/sync-versions.yml +++ b/.github/workflows/sync-versions.yml @@ -20,12 +20,12 @@ jobs: - name: Discover branches id: branches run: | - # Get master + the two most recent release branches (by semver). + # Get the two most recent release branches (by semver). master is not + # released from, so it is skipped. branches=$(gh api repos/${{ github.repository }}/branches --paginate --jq ' [.[] | select(.name | test("^release-v[0-9]+\\.[0-9]+$")) | .name] | sort_by(ltrimstr("release-v") | split(".") | map(tonumber)) | .[-2:] - | ["master"] + . ') echo "branches=${branches}" >> "$GITHUB_OUTPUT" env: