Add some Debug Logs
This commit is contained in:
parent
8040ba33d6
commit
256f31683d
@ -58,6 +58,7 @@ _tag_commit() {
|
|||||||
|
|
||||||
if [ -n "$INPUT_TAGGING_MESSAGE" ]
|
if [ -n "$INPUT_TAGGING_MESSAGE" ]
|
||||||
then
|
then
|
||||||
|
echo "::debug::Create tag $INPUT_TAGGING_MESSAGE"
|
||||||
git tag -a "$INPUT_TAGGING_MESSAGE" -m "$INPUT_TAGGING_MESSAGE"
|
git tag -a "$INPUT_TAGGING_MESSAGE" -m "$INPUT_TAGGING_MESSAGE"
|
||||||
else
|
else
|
||||||
echo " No tagging message supplied. No tag will be added."
|
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
|
# Only add `--tags` option, if `$INPUT_TAGGING_MESSAGE` is set
|
||||||
if [ -n "$INPUT_TAGGING_MESSAGE" ]
|
if [ -n "$INPUT_TAGGING_MESSAGE" ]
|
||||||
then
|
then
|
||||||
git push origin --tags
|
echo "::debug::git push origin --tags"
|
||||||
|
git push origin --tags
|
||||||
else
|
else
|
||||||
git push origin
|
echo "::debug::git push origin"
|
||||||
|
git push origin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
|
echo "::debug::Push commit to remote branch $INPUT_BRANCH"
|
||||||
git push --set-upstream origin "HEAD:$INPUT_BRANCH" --tags
|
git push --set-upstream origin "HEAD:$INPUT_BRANCH" --tags
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user