show raw version number in docs dropdown (#1150)

This commit is contained in:
Gary Verhaegen 2019-05-21 16:56:29 +01:00 committed by mergify[bot]
parent 98bcf652c4
commit 3ff09d7d5e

View File

@ -48,7 +48,7 @@ jobs:
LOG=$(Build.StagingDirectory)/log.txt
RELEASES=$(curl https://api.github.com/repos/digital-asset/daml/releases -s | jq -r '. | map(select(.prerelease == false)) | map(.tag_name)[]')
LATEST=$(echo $RELEASES | awk '{print $1}')
JSON_BODY=$(echo $RELEASES | sed -e 's/ /\n/g' | sed -e 's/v\(.*\)/"\1": "v\1",'/g)
JSON_BODY=$(echo $RELEASES | sed -e 's/ /\n/g' | sed -e 's/v\(.*\)/"\1": "\1",'/g)
echo "Building latest docs: $LATEST"
git checkout $LATEST >$LOG 2>&1
robustly_download_nix_pkgs