diff --git a/entrypoint.sh b/entrypoint.sh index b3d8697..bbb4dc8 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -39,7 +39,7 @@ unzip -v "${NAME}_${TAG}.zip" CSRF=$(curl -b cookiejar.txt -c cookiejar.txt -s https://factorio.com/login?mods=1 | grep csrf_token | sed -r -e 's/.*value="(.*)".*/\1/') # Authenticate with the credential secrets and the CSRF token, getting a session cookie for the authorized user -curl -b cookiejar.txt -c cookiejar.txt -s -F "csrf_token=${CSRF}" -F "username=${FACTORIO_USER}" -F "password=${FACTORIO_PASSWORD}" -o /dev/null https://factorio.com/login +curl -b cookiejar.txt -c cookiejar.txt -s -e https://factorio.com/login?mods=1 -F "csrf_token=${CSRF}" -F "username_or_email=${FACTORIO_USER}" -F "password=${FACTORIO_PASSWORD}" -o /dev/null https://factorio.com/login # Query the mod info, verify the version number we're trying to push doesn't already exist curl -b cookiejar.txt -c cookiejar.txt -s "https://mods.factorio.com/api/mods/${NAME}/full" | jq -e ".releases[] | select(.version == \"${TAG}\")"