diff --git a/.github/scripts/update-version.sh b/.github/scripts/update-version.sh index 4b41309..f566b91 100755 --- a/.github/scripts/update-version.sh +++ b/.github/scripts/update-version.sh @@ -16,8 +16,8 @@ NO_COLOR='\e[0m' CURRENT_VERSION="$(awk '/^.*_version:/{print $2}' 'defaults/main.yml' | tr -d \')" # Get latest version -URL='https://my.atlassian.com/download/feeds/current/jira-software.json' -APP_JSON="$(curl --silent $URL | sed -e 's/downloads//' -e 's/[()]//g' | jq '[ .[] | select((.edition == "Enterprise") and (.platform == "Mac OS X, Unix")) ]' | jq 'max_by(.version)')" +URL='https://my.atlassian.com/download/feeds/archived/jira-software.json' +APP_JSON="$(curl --silent $URL | sed -e 's/downloads//' -e 's/[()]//g' | jq '[ .[] | select((.edition == "Enterprise") and (.platform == "Mac OS X, Unix")) ]' | jq 'max_by(.version | split(".") | map(tonumber))')" LATEST_VERSION="$(echo $APP_JSON | jq -r '.version')" # Validate latest version