mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2024-12-06 02:09:04 +00:00
Test shorthand
This commit is contained in:
parent
e1770ec52b
commit
2b6b90e8f1
@ -75,14 +75,15 @@ _tag_commit() {
|
|||||||
_push_to_github() {
|
_push_to_github() {
|
||||||
if [ -z "$INPUT_BRANCH" ]
|
if [ -z "$INPUT_BRANCH" ]
|
||||||
then
|
then
|
||||||
|
git push origin --all --tags
|
||||||
|
|
||||||
# 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
|
# git push origin --tags
|
||||||
else
|
# else
|
||||||
git push origin
|
# git push origin
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
else
|
else
|
||||||
git push --set-upstream origin "HEAD:$INPUT_BRANCH" --tags
|
git push --set-upstream origin "HEAD:$INPUT_BRANCH" --tags
|
||||||
|
Loading…
Reference in New Issue
Block a user