ci: track authentik old stable versions
This commit is contained in:
parent
e2f0f1f005
commit
f49fa21894
1 changed files with 14 additions and 1 deletions
|
@ -19,7 +19,20 @@ for pkg in $owned_by_you; do
|
|||
downstream_version=${downstream_version/-*}
|
||||
|
||||
# special case for forgejo-aneksajo:
|
||||
upstream_version=${upstream_version/-git-annex/_git}
|
||||
# special cases
|
||||
case $pkg in
|
||||
forgejo-aneksajo)upstream_version=${upstream_version/-git-annex/_git};;
|
||||
authentik)
|
||||
upstream_version=$(curl --fail -X GET -sS -H 'Content-Type: application/json' "https://release-monitoring.org/api/v2/projects/?name=authentik&distribution=Alpine" | jq -r '.items.[].stable_versions' | jq -r ".[] | match(\"${downstream_version%.*}.*\").string" | head -n 1)
|
||||
latest_version=$(curl --fail -X GET -sS -H 'Content-Type: application/json' "https://release-monitoring.org/api/v2/packages/?name=authentik&distribution=Alpine" | jq -r '.items.[].stable_version' )
|
||||
# append version number to signal that this is not latest major version
|
||||
if [ "${upstream_version%.*}" != "${latest_version%.*}" ]; then
|
||||
echo "$pkg${latest_version%.*} major version available"
|
||||
echo "$pkg${latest_version%.*} $downstream_version $latest_version $repo" >> out_of_date
|
||||
pkg=authentik${upstream_version%.*}
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -z "$upstream_version" ]; then
|
||||
echo "$pkg not in anitya"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue