feat: support new remote branch creation (#329)

* fix: don't pull on new branch creation

* fix: don't show useless errors on branch creation

* feat: add branch_mode input

* fix: properly exit after fialed input check

* docs(README): document new input
This commit is contained in:
Federico Grandi
2021-12-03 19:42:39 +01:00
committed by GitHub
parent f6438de30b
commit 7d94da29b1
5 changed files with 46 additions and 8 deletions

View File

@@ -31,6 +31,10 @@ Add a step like this to your workflow:
# Default: the branch that triggered the run
branch: some-branch
# How the action should behave when the targeted branch is missing: "create" will create a new one on the remote, "throw" will exit
# Default: throw
branch_mode: create
# The name of the custom committer you want to use, if different from the author of the commit.
# Default: the name of the author (set with either author_name or default_author)
committer_name: Committer Name