Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
fix(ci): use regex to match latest release version
Browse files Browse the repository at this point in the history
  • Loading branch information
chachako authored Oct 6, 2023
1 parent f43a222 commit 6231e3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/scripts/checkout-upstream-tags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ for tag in $upstream_tags; do
corresponding_branch=$(echo "$tag" | sed -E 's/(v)([0-9]+\.[0-9]+\.[0-9]+)(.*)/\1\2.x\3/')

# Check if the branch is already checked out
if [[ ! $local_branches =~ $corresponding_branch ]]; then
if [[ ! $local_branches =~ (^|[[:space:]])"$corresponding_branch"($|[[:space:]]) ]]; then
needs_checkout=true

echo "🔍 Checking out $tag..."
Expand Down

0 comments on commit 6231e3d

Please sign in to comment.