Skip to content

Commit

Permalink
Fix release-check scripts to grep a correct latest supported version
Browse files Browse the repository at this point in the history
  • Loading branch information
Yevhen Hrytsai committed Sep 9, 2024
1 parent 7e385fd commit 9005635
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/release-check/find-latest-releases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pac_search_query="https://packages.atlassian.com/maven/${GROUP}/${ARTIFACT}/mave
search_response=$(curl -s "${pac_search_query}")

# PARSE RESPONSE AND GET AN ARRAY OF VERSIONS THAT CONTAIN ONLY NUMBERS (EXCLUDES SNAPSHOTS AND MILESTONE RELEASES)
latest_releases=$(echo "$search_response" | grep -oE '<version>[0-9][0-9]?\.[0-9]+\.[0-9]+</version>' | grep -oE '[0-9]\.[0-9]+\.[0-9]+')
latest_releases=$(echo "$search_response" | grep -oE '<version>[0-9][0-9]?\.[0-9]+\.[0-9]+</version>' | grep -oE '[0-9][0-9]?\.[0-9]+\.[0-9]+')

echo "$latest_releases"

Expand Down
4 changes: 2 additions & 2 deletions bin/release-check/run-product-release-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ fi

case $PRODUCT in
jira)
version_regex="[0-9]\\.[0-9]+\\.[0-9]+"
version_regex="^[0-9]\\.[0-9]+\\.[0-9]+$"
;;
confluence|bitbucket)
version_regex="[0-8]\\.[0-9]+\\.[0-9]+"
version_regex="^[0-8]\\.[0-9]+\\.[0-9]+$"
;;
*)
echo "Invalid product"
Expand Down

0 comments on commit 9005635

Please sign in to comment.