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: branch:
description: Git branch name, where changes should be pushed too. description: Git branch name, where changes should be pushed too.
required: false required: false
default: null default: ''
commit_options: commit_options:
description: Commit options (eg. --no-verify) description: Commit options (eg. --no-verify)
required: false required: false

View File

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