From 5a65aa3b85bc44bdee1c0af6670a1c7ca4180205 Mon Sep 17 00:00:00 2001 From: Dan Ditomaso Date: Fri, 17 Oct 2025 10:05:53 -0400 Subject: [PATCH] Update .github/workflows/update-stable-from-master.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/update-stable-from-master.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/update-stable-from-master.yml b/.github/workflows/update-stable-from-master.yml index 8641533e..d6e5a0dc 100644 --- a/.github/workflows/update-stable-from-master.yml +++ b/.github/workflows/update-stable-from-master.yml @@ -56,13 +56,11 @@ jobs: fi # 3) Fall back to main if present - for BR in main; do - if [ -z "${SHA}" ] && git ls-remote --exit-code --heads origin "${BR}" >/dev/null 2>&1; then - git fetch origin "${BR}:${BR}" --prune - SHA="$(git rev-parse "${BR}^{commit}")" - SRC_DESC="branch:${BR}" - fi - done + if [ -z "${SHA}" ] && git ls-remote --exit-code --heads origin "main" >/dev/null 2>&1; then + git fetch origin "main:main" --prune + SHA="$(git rev-parse "main^{commit}")" + SRC_DESC="branch:main" + fi if [ -z "${SHA}" ]; then echo "::error::Unable to resolve source commit from tag (${TAG}), target_commitish (${TARGET}), or main."