From 260d4a86616d4742f215fdcc307e2c6787cca3b8 Mon Sep 17 00:00:00 2001 From: Alexandru Mahmoud Date: Tue, 17 Dec 2024 16:00:12 -0500 Subject: [PATCH] Fix branch detection --- .github/workflows/weekly-release-bump.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/weekly-release-bump.yaml b/.github/workflows/weekly-release-bump.yaml index 2af938c..e11517f 100644 --- a/.github/workflows/weekly-release-bump.yaml +++ b/.github/workflows/weekly-release-bump.yaml @@ -17,7 +17,7 @@ jobs: id: find-branch run: | latest_version=$(git branch -r | grep 'origin/RELEASE_' | sed 's|origin/||' | grep -oP 'RELEASE_\K\d+_\d+' | sort -Vr | head -n1) - latest_branch="RELEASE_${latest_version//_/.}" + latest_branch=$(echo "RELEASE_${latest_version}" | sed 's/\./_/g') echo "Detected latest release branch: $latest_branch" echo "branch=$latest_branch" >> $GITHUB_OUTPUT