Minor cleanup

This commit is contained in:
Adam Ormsby
2021-07-20 00:41:02 -05:00
parent 2dfe225ade
commit c64b5c7076
3 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -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
-1
View File
@@ -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
View File
@@ -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"