File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments