From caab9cef9ea316a6a2cc2125424c56500362d593 Mon Sep 17 00:00:00 2001 From: Greg Brimble Date: Thu, 15 Apr 2021 16:20:19 +0100 Subject: [PATCH] Update entrypoint.sh --- entrypoint.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index fda1a53..eb29cb4 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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" @@ -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" @@ -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 \ No newline at end of file +git push $remote "HEAD:$INPUT_BRANCH" $force_option && exit 0