From 5c336fc2f75dea8df164e71455e869e6f5d57026 Mon Sep 17 00:00:00 2001 From: Yuhong Sun Date: Sat, 26 Oct 2024 13:08:27 -0700 Subject: [PATCH] k --- .github/workflows/pr-backport-autotrigger.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-backport-autotrigger.yml b/.github/workflows/pr-backport-autotrigger.yml index 7f4e9da8a2a..50b4c971859 100644 --- a/.github/workflows/pr-backport-autotrigger.yml +++ b/.github/workflows/pr-backport-autotrigger.yml @@ -33,11 +33,11 @@ jobs: id: list-branches run: | git fetch --all --tags - BRANCHES=$(git for-each-ref --format='%(refname:short)' refs/remotes/origin/* | sed 's|origin/||' | sort -Vr) + BRANCHES=$(git for-each-ref --format='%(refname:short)' refs/remotes/origin/release/* | sed 's|origin/release/||' | sort -Vr) BETA=$(echo "$BRANCHES" | head -n 1) STABLE=$(echo "$BRANCHES" | head -n 2 | tail -n 1) - echo "beta=$BETA" >> $GITHUB_OUTPUT - echo "stable=$STABLE" >> $GITHUB_OUTPUT + echo "beta=release/$BETA" >> $GITHUB_OUTPUT + echo "stable=release/$STABLE" >> $GITHUB_OUTPUT # Fetch latest tags for beta and stable LATEST_BETA_TAG=$(git tag -l "v*.*.0-beta.*" | sort -Vr | head -n 1) LATEST_STABLE_TAG=$(git tag -l "v*.*.*" | grep -v -- "-beta" | sort -Vr | head -n 1)