From fcc428b7e367cfc117832128ba0c3fa64dc7040c Mon Sep 17 00:00:00 2001 From: mega-putin Date: Wed, 30 Sep 2026 01:57:47 +0000 Subject: [PATCH] fix: fetch newly created release branch --- .github/actions/release-candidate/action.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/actions/release-candidate/action.yml b/.github/actions/release-candidate/action.yml index b771aaf..9a1c198 100644 --- a/.github/actions/release-candidate/action.yml +++ b/.github/actions/release-candidate/action.yml @@ -262,9 +262,8 @@ runs: if ! git ls-remote --exit-code --heads origin "refs/heads/$BRANCH" >/dev/null; then gh api "repos/$GITHUB_REPOSITORY/git/refs" -f ref="refs/heads/$BRANCH" -f sha="$checkout" >/dev/null echo "created $BRANCH at $checkout" - else - git fetch --quiet origin "+refs/heads/$BRANCH:refs/remotes/origin/$BRANCH" fi + git fetch --quiet origin "+refs/heads/$BRANCH:refs/remotes/origin/$BRANCH" git checkout --quiet -B "$BRANCH" "$checkout" echo "release_branch=$BRANCH" >> "$GITHUB_OUTPUT" echo "candidate PR will target $BRANCH at $checkout"