Add more debug logs

This commit is contained in:
Stefan Zweifel 2020-04-18 10:03:19 +02:00
parent 5b81f384d5
commit 21109ad983
1 changed files with 5 additions and 5 deletions

View File

@ -48,11 +48,13 @@ _switch_to_branch() {
_add_files() {
echo "INPUT_FILE_PATTERN: ${INPUT_FILE_PATTERN}"
echo "::debug::File pattern ${INPUT_FILE_PATTERN}"
git add "${INPUT_FILE_PATTERN}"
}
_local_commit() {
echo "INPUT_COMMIT_OPTIONS: ${INPUT_COMMIT_OPTIONS}"
echo "::debug::Commit Options ${INPUT_COMMIT_OPTIONS}"
git -c user.name="$INPUT_COMMIT_USER_NAME" -c user.email="$INPUT_COMMIT_USER_EMAIL" commit -m "$INPUT_COMMIT_MESSAGE" --author="$INPUT_COMMIT_AUTHOR" ${INPUT_COMMIT_OPTIONS:+"$INPUT_COMMIT_OPTIONS"}
}
@ -61,6 +63,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,10 +73,7 @@ _tag_commit() {
_push_to_github() {
echo "INPUT_BRANCH value: $INPUT_BRANCH";
echo "push_to_github";
echo "::debug __push_to_github"
echo "::debug::__push_to_github"
if [ -z "$INPUT_BRANCH" ]
then
@ -84,8 +84,8 @@ _push_to_github() {
else
git push origin
fi
else
echo "::debug::Push commit to remote branch $INPUT_BRANCH"
git push --set-upstream origin "HEAD:$INPUT_BRANCH" --tags
fi
}