From 5828a9f10759a204709b88fe519713be32bd261c Mon Sep 17 00:00:00 2001 From: Freddy Date: Fri, 17 Feb 2023 20:10:26 +0000 Subject: [PATCH] Update entrypoint.sh --- entrypoint.sh | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index ef03742..fcba313 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -8,13 +8,7 @@ unset INPUT_REPOSITORY # Clone crawler echo "Cloning crawler..." -mkdir /crawler - -export INPUT_REF="$INPUT_CRAWLERREF" -export GITHUB_WORKSPACE="/crawler" -export GITHUB_REPOSITORY="$CRAWLER_REPOSITORY" - -node /checkout.js +git clone "https://$INPUT_ACTOR:$INPUT_TOKEN@teamhydra.io/$CRAWLER_REPOSITORY.git" crawler # Install crawler dependencies echo "Installing crawler dependencies..." @@ -23,13 +17,7 @@ npm install # Clone workspace echo "Cloning workspace..." -mkdir /workspace - -export INPUT_REF="$INPUT_CURRENT_BRANCH" -export GITHUB_WORKSPACE="/workspace" -export GITHUB_REPOSITORY="$WORKSPACE_REPOSITORY" - -node /checkout.js +git clone "https://$INPUT_ACTOR:$INPUT_TOKEN@teamhydra.io/$WORKSPACE_REPOSITORY.git" workspace # Inject .env from workspace echo "Injecting .env from workspace..." @@ -38,13 +26,7 @@ cp /workspace/.env /crawler/.env # Clone output echo "Cloning output..." -mkdir /output - -export INPUT_REF="$INPUT_BRANCH" -export GITHUB_WORKSPACE="/output" -export GITHUB_REPOSITORY="$OUTPUT_REPOSITORY" - -node /checkout.js +git clone "https://$INPUT_ACTOR:$INPUT_TOKEN@teamhydra.io/$OUTPUT_REPOSITORY.git" output # Run crawler echo "Running crawler..."