Add create_branch option to force create a new branch (#203)

* Add create_branch option

* Checkout new branch if create_branch input is true

* Add tests

* Update README
This commit is contained in:
Stefan Zweifel
2022-02-27 07:52:17 +01:00
committed by GitHub
parent dee58f4213
commit ebe77391c6
4 changed files with 287 additions and 17 deletions

View File

@@ -25,7 +25,7 @@ inputs:
required: false
default: ''
file_pattern:
description: File pattern used for `git add`. For example `src/\*.js`
description: File pattern used for `git add`. For example `src/*.js`
required: false
default: '.'
repository:
@@ -67,6 +67,9 @@ inputs:
disable_globbing:
description: Stop the shell from expanding filenames (https://www.gnu.org/software/bash/manual/html_node/Filename-Expansion.html)
default: false
create_branch:
description: Create new branch with the name of `branch`-input in local and remote repository, if it doesn't exist yet.
default: false
outputs:
changes_detected: