diff --git a/entrypoint.sh b/entrypoint.sh index f60165a..053ba9d 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -43,7 +43,8 @@ if ! $INPUT_ALLOW_FORKS; then fi fi -git remote set-url origin https://x-access-token:${!INPUT_PUSH_TOKEN}@github.com/$GITHUB_REPOSITORY.git +git clone https://x-access-token:${!INPUT_PUSH_TOKEN}@github.com/$GITHUB_REPOSITORY.git +cd docs git config --global user.name "$INPUT_USER_NAME" git config --global user.email "$INPUT_USER_EMAIL" @@ -51,8 +52,6 @@ set -o xtrace git checkout $INPUT_TARGET_BRANCH -git fetch - # Do the merge git merge origin/$INPUT_SOURCE_BRANCH