Skip to content

Commit

Permalink
Fix branch detection
Browse files Browse the repository at this point in the history
  • Loading branch information
almahmoud committed Dec 17, 2024
1 parent 0a8c2bb commit 260d4a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/weekly-release-bump.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 260d4a8

Please sign in to comment.