Skip to content

Commit 08a4e15

Browse files
Branch fix bug (#533)
1 parent cd0da20 commit 08a4e15

1 file changed

Lines changed: 1 addition & 17 deletions

File tree

.github/workflows/deploy.yaml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -61,24 +61,8 @@ jobs:
6161
VERSION=$(echo "$RAW_VERSION" | sed -E 's/^[vV]\.?//;s/\.$//')
6262
echo "Raw version from release: $RAW_VERSION -> Normalized: $VERSION"
6363
64-
# Step 1: Get release list
65-
echo "Getting release list..."
66-
gh release list --limit 10
67-
68-
# Step 2: Filter out drafts
69-
echo "Filtering drafts..."
70-
gh release list --limit 10 | grep -v Draft
71-
72-
# Step 3: Extract first column
73-
echo "Extracting version tags..."
74-
gh release list --limit 10 | grep -v Draft | awk '{print $1}'
75-
76-
# Step 4: Filter for version pattern
77-
echo "Filtering for version pattern..."
78-
gh release list --limit 10 | grep -v Draft | awk '{print $1}' | grep -E "^[vV]"
79-
8064
# Extract and normalize all version tags - only consider tags starting with v or V
81-
ALL_VERSIONS=$(gh release list --limit 10 | grep -v Draft | awk '{print $1}' | grep -E "^[vV]")
65+
ALL_VERSIONS=$(gh release list --limit 10 | awk '!/[Dd]raft/ && $1 ~ /^[vV]/ {print $1}' || echo "")
8266
echo "All version tags (filtered to v/V only):"
8367
echo "$ALL_VERSIONS"
8468

0 commit comments

Comments
 (0)