mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2025-01-05 02:15:35 +00:00
WIP
This commit is contained in:
parent
f0354eba45
commit
42e5be9ebb
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user