diff --git a/entrypoint.sh b/entrypoint.sh index ef82060..00a3462 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -205,12 +205,12 @@ create_pull_request() { push_to_branch() { BRANCH=${INPUT_LOCALIZATION_BRANCH_NAME} - REPO_URL="https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@${INPUT_GITHUB_BASE_URL}/${GITHUB_REPOSITORY}.git" - echo "CONFIGURATION GIT USER" git config --global user.email "${INPUT_GITHUB_USER_EMAIL}" git config --global user.name "${INPUT_GITHUB_USER_NAME}" + REPO_URL="https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@${INPUT_GITHUB_BASE_URL}/${GITHUB_REPOSITORY}.git" + if [ "$INPUT_SKIP_REF_CHECKOUT" != true ] && [ ${GITHUB_REF#refs/heads/} != $GITHUB_REF ]; then git checkout "${GITHUB_REF#refs/heads/}" fi