Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
flarco authored Mar 26, 2024
1 parent 376d4c1 commit 055e024
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ 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

chmod -R 777 $GITHUB_WORKSPACE
cd $GITHUB_WORKSPACE

# run sling command
sh -c "sling $INPUT_COMMAND"
sh -c "sling $INPUT_COMMAND"

0 comments on commit 055e024

Please sign in to comment.