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