From bdd7e028bb66d7959395325f8df4d1c828453167 Mon Sep 17 00:00:00 2001 From: Florent Date: Fri, 13 Jan 2023 12:40:09 +0100 Subject: [PATCH] Auto-update admin doc link --- .github/workflows/updater.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/updater.sh b/.github/workflows/updater.sh index 2a2b8ad..1de1b5b 100755 --- a/.github/workflows/updater.sh +++ b/.github/workflows/updater.sh @@ -105,7 +105,8 @@ done #================================================= # Replace new version in manifest -echo "$(jq -s --indent 4 ".[] | .version = \"$version~ynh1\"" manifest.json)" > manifest.json +admindoc="https://www.elastic.co/guide/en/elasticsearch/reference/$(echo $version | grep -Po "^\d+\.\d+")/elasticsearch-intro.html" +echo "$(jq -s --indent 4 ".[] | .version = \"$version~ynh1\" | .upstream.admindoc = \"$admindoc\"" manifest.json)" > manifest.json # No need to update the README, yunohost-bot takes care of it