From 256f31683d245fedde6dd7d50c590db72791f910 Mon Sep 17 00:00:00 2001 From: Stefan Zweifel Date: Sat, 18 Apr 2020 10:53:20 +0200 Subject: [PATCH] Add some Debug Logs --- entrypoint.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 24e078f..5c46e02 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -58,6 +58,7 @@ _tag_commit() { if [ -n "$INPUT_TAGGING_MESSAGE" ] then + echo "::debug::Create tag $INPUT_TAGGING_MESSAGE" git tag -a "$INPUT_TAGGING_MESSAGE" -m "$INPUT_TAGGING_MESSAGE" else echo " No tagging message supplied. No tag will be added." @@ -70,12 +71,15 @@ _push_to_github() { # Only add `--tags` option, if `$INPUT_TAGGING_MESSAGE` is set if [ -n "$INPUT_TAGGING_MESSAGE" ] then - git push origin --tags + echo "::debug::git push origin --tags" + git push origin --tags else - git push origin + echo "::debug::git push origin" + git push origin fi else + echo "::debug::Push commit to remote branch $INPUT_BRANCH" git push --set-upstream origin "HEAD:$INPUT_BRANCH" --tags fi }