From d63a102c8f3fea57e1c678fcd3d7e8f315c2881b Mon Sep 17 00:00:00 2001 From: Carles Pina i Estany Date: Fri, 19 May 2023 16:28:33 +0200 Subject: [PATCH] Update comment and output --- entrypoint.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 82048df..1694283 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -143,13 +143,12 @@ COMMIT_MESSAGE="${COMMIT_MESSAGE/ORIGIN_COMMIT/$ORIGIN_COMMIT}" COMMIT_MESSAGE="${COMMIT_MESSAGE/\$GITHUB_REF/$GITHUB_REF}" echo "[+] Set directory is safe ($CLONE_DIR)" -# Related to https://github.com/cpina/github-action-push-to-another-repository/issues/64 and https://github.com/cpina/github-action-push-to-another-repository/issues/64 -# TODO: review before releasing it as a version +# Related to https://github.com/cpina/github-action-push-to-another-repository/issues/64 git config --global --add safe.directory "$CLONE_DIR" - if [ "$CREATE_TARGET_BRANCH_IF_NEEDED" = "true" ] then + echo "[+] Switch to the TARGET_BRANCH" git switch -c "$TARGET_BRANCH" fi