Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update entrypoint.sh
  • Loading branch information
Greg Brimble authored and GitHub committed Apr 15, 2021
1 parent d28a663 commit caab9ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions entrypoint.sh
Expand Up @@ -24,7 +24,7 @@ npm install
echo "Cloning workspace..."
mkdir /workspace

export INPUT_REF="master"
export INPUT_REF="$INPUT_CURRENT_BRANCH"
export GITHUB_WORKSPACE="/workspace"
export GITHUB_REPOSITORY="$WORKSPACE_REPOSITORY"

Expand All @@ -39,6 +39,7 @@ cp /workspace/.env /crawler/.env
echo "Cloning output..."
mkdir /output

export INPUT_REF="$INPUT_BRANCH"
export GITHUB_WORKSPACE="/output"
export GITHUB_REPOSITORY="$OUTPUT_REPOSITORY"

Expand Down Expand Up @@ -70,4 +71,4 @@ fi

remote="https://$INPUT_ACTOR:$INPUT_TOKEN@github.com/$OUTPUT_REPOSITORY.git"

git push $remote "HEAD:$INPUT_BRANCH" $force_option && exit 0
git push $remote "HEAD:$INPUT_BRANCH" $force_option && exit 0

0 comments on commit caab9ce

Please sign in to comment.