Cstate new version : Exclude dev|rc version

This commit is contained in:
Jeremy Gardais 2020-08-18 12:03:16 +02:00
parent 821fb4828a
commit 5a2fb8c13b
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ cstate_url="${1}"
cstate_current_version=$(curl --insecure --silent "${cstate_url}" | grep -E 'meta.*generator.*cState.*github.com' | sed 's;.*generator.*content.*cState \(v.*\) - https.*github.com.*;\1;')
cstate_repo_url="https://github.com/cstate/cstate"
cstate_new_version=$("${script_wd}"/releasetags "${cstate_repo_url}" | head -n1)
cstate_new_version=$("${script_wd}"/releasetags "${cstate_repo_url}" | grep -vE -- '(dev|rc)' | head -n1)
cstate_new_version_file="/tmp/.github.cstate.upgrade"
# }}}