diff --git a/entrypoint.sh b/entrypoint.sh index 7d538ef..99c23e6 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -9,8 +9,10 @@ export SLING_LOADED_AT_COLUMN=true if [ "$INPUT_VERSION" != "latest" ]; then # download sling version echo "Downloading version $INPUT_VERSION" - wget -q https://ocral.nyc3.cdn.digitaloceanspaces.com/slingdata.io/dist/$INPUT_VERSION/sling-linux - mv sling-linux /usr/local/bin/sling + wget -q https://github.com/slingdata-io/sling-cli/releases/download/v$INPUT_VERSION/sling_linux_amd64.tar.gz + tar -xf sling_linux_amd64.tar.gz + rm -f /usr/local/bin/sling + mv sling /usr/local/bin/sling chmod 755 /usr/local/bin/sling fi @@ -18,4 +20,4 @@ chmod -R 777 $GITHUB_WORKSPACE cd $GITHUB_WORKSPACE # run sling command -sh -c "sling $INPUT_COMMAND" \ No newline at end of file +sh -c "sling $INPUT_COMMAND"