Fix wrong variable name
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Kim Oliver Drechsel 2021-12-03 18:34:17 +01:00
parent d4471635f5
commit 6d0c8a3f27
Signed by: Kim
GPG Key ID: B9D907EF02605A07

View File

@ -18,7 +18,7 @@ if ! echo "$EXISTING_VERSIONS" | grep -q "$LATEST_VERSION" || [[ "$1" == "-f" ]]
DOWNLOAD_URL=$(echo "$HTML" | grep -oe "https://launcher.mojang.com.*server.jar")
build_number=$(/usr/local/bin/drone build create --param MINECRAFT_SERVER_VERSION="$TAG_VERSION" --param DOWNLOAD_URL="$DOWNLOAD_URL" Games/Minecraft-Vanilla-Server | grep Number | cut -d' ' -f2)
build_number=$(/usr/local/bin/drone build create --param MINECRAFT_SERVER_VERSION="$LATEST_VERSION" --param DOWNLOAD_URL="$DOWNLOAD_URL" Games/Minecraft-Vanilla-Server | grep Number | cut -d' ' -f2)
echo "Starting build pipeline at
https://drone.pyas.de/Games/Minecraft-Vanilla-Server/$build_number"