ci: support release branches with 2-4 version segments

This commit is contained in:
Ashwin Bharambe 2025-10-30 16:20:21 -07:00
parent 90234d6973
commit 4a770b749a
8 changed files with 37 additions and 13 deletions

View file

@ -47,7 +47,7 @@ runs:
# Check if PR is targeting a release branch
TARGET_BRANCH="${{ github.base_ref }}"
if [[ "$TARGET_BRANCH" =~ ^release-[0-9]+\.[0-9]+\.x-maint$ ]]; then
if [[ "$TARGET_BRANCH" =~ ^release-([0-9]+\.){1,3}[0-9]+$ ]]; then
echo "PR targets release branch: $TARGET_BRANCH"
echo "Checking if matching branch exists in llama-stack-client-python..."