Avoid dev and release candidate version
This commit is contained in:
parent
23eba7fd51
commit
91f963774d
|
@ -55,7 +55,7 @@ else
|
||||||
gitea_current_version=$("${gitea_bin_path}" -v | cut -d' ' -f3)
|
gitea_current_version=$("${gitea_bin_path}" -v | cut -d' ' -f3)
|
||||||
|
|
||||||
gitea_repo_url="https://github.com/go-gitea/gitea"
|
gitea_repo_url="https://github.com/go-gitea/gitea"
|
||||||
gitea_new_version=$("${script_wd}"/releasetags "${gitea_repo_url}" | head -n1 | sed 's/v//')
|
gitea_new_version=$("${script_wd}"/releasetags "${gitea_repo_url}" | grep -vE -- '(dev|rc)' | head -n1 | sed 's/v//')
|
||||||
|
|
||||||
gitea_new_version_file="/tmp/.github.gitea.upgrade"
|
gitea_new_version_file="/tmp/.github.gitea.upgrade"
|
||||||
# }}}
|
# }}}
|
||||||
|
|
Loading…
Reference in New Issue