From c64b5c70764acd73a96e835dac8d61a53bcae682 Mon Sep 17 00:00:00 2001 From: Adam Ormsby Date: Tue, 20 Jul 2021 00:41:02 -0500 Subject: [PATCH] Minor cleanup --- entry/run_action.sh | 2 +- run/push_updates.sh | 1 - util/output.sh | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/entry/run_action.sh b/entry/run_action.sh index cbfa4bf..5290b1d 100755 --- a/entry/run_action.sh +++ b/entry/run_action.sh @@ -25,7 +25,7 @@ output_new_commit_list sync_new_commits # shellcheck disable=SC1091 -# push newly sunced commits to local branch +# push newly synced commits to local branch . "${ACTION_PARENT_DIR}"/run/push_updates.sh push_new_commits diff --git a/run/push_updates.sh b/run/push_updates.sh index e094c58..8a6ff2f 100644 --- a/run/push_updates.sh +++ b/run/push_updates.sh @@ -7,7 +7,6 @@ push_new_commits() { # TODO: figure out hwo this would work in local mode... # update origin url with token since it is not persisted during checkout step when syncing from a private repo if [ -n "${INPUT_UPSTREAM_REPO_ACCESS_TOKEN}" ]; then - echo "github token - ${INPUT_SOURCE_REPO_TOKEN}" git remote set-url origin "https://${GITHUB_ACTOR}:${INPUT_SOURCE_REPO_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" fi diff --git a/util/output.sh b/util/output.sh index 28c2c4a..ab38c8b 100644 --- a/util/output.sh +++ b/util/output.sh @@ -51,7 +51,7 @@ write_out() { *) echo "${BOLD}${RED}ERROR: ${NORMAL} exit $1" 1>&2 printf '%s\n' "$2" 1>&2 - echo "Try running in test mode to verify your action input. If that does not help, please open an issue." 1>&2 + printf '%s\n' "Try running in test mode to verify your action input. If that does not help, please open an issue." 1>&2 early_exit_cleanup exit "$1"