Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update entrypoint.sh
  • Loading branch information
frobinsonj authored and GitHub Enterprise committed Feb 17, 2023
1 parent b767134 commit 5828a9f
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions entrypoint.sh
Expand Up @@ -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..."
Expand All @@ -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..."
Expand All @@ -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..."
Expand Down

0 comments on commit 5828a9f

Please sign in to comment.