This commit is contained in:
Stefan Zweifel 2020-02-05 21:39:14 +01:00
parent f0354eba45
commit 42e5be9ebb
2 changed files with 7 additions and 9 deletions

View File

@ -10,7 +10,7 @@ inputs:
branch:
description: Git branch name, where changes should be pushed too.
required: false
default: null
default: ''
commit_options:
description: Commit options (eg. --no-verify)
required: false

View File

@ -55,14 +55,12 @@ _local_commit() {
}
_push_to_github() {
git push origin
# if [ -z "$INPUT_BRANCH" ]
# then
# git push --set-upstream origin "HEAD:$INPUT_BRANCH"
# else
# git push origin
# fi
if [ -n "$INPUT_BRANCH" ]
then
git push origin
else
git push --set-upstream origin "HEAD:$INPUT_BRANCH"
fi
}
_main