mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2024-11-06 02:08:05 +00:00
Use git branch --list
This commit is contained in:
parent
53438d58ce
commit
7507738fca
@ -65,7 +65,7 @@ _switch_to_branch() {
|
||||
# If not create one
|
||||
|
||||
|
||||
if [ -n "$(git branch | grep $INPUT_BRANCH)" ]
|
||||
if [ -n "$(git branch --list $INPUT_BRANCH)" ]
|
||||
then
|
||||
|
||||
# Switch to branch from current Workflow run
|
||||
|
Loading…
Reference in New Issue
Block a user