Skip to content

Commit

Permalink
ci: update jira feed url
Browse files Browse the repository at this point in the history
  • Loading branch information
antmelekhin committed Sep 5, 2024
1 parent efa19f7 commit 6819cea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/update-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6819cea

Please sign in to comment.