From 7ebe921dc710cc29debc4deea5716864a8342c65 Mon Sep 17 00:00:00 2001 From: Andrii Bodnar Date: Fri, 13 Oct 2023 11:41:55 +0300 Subject: [PATCH] try to fix the 142 issue --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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