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 }