Minor cleanup
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
+1
-1
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user