Use git branch --list

This commit is contained in:
Stefan Zweifel 2021-02-07 16:07:43 +01:00
parent 53438d58ce
commit 7507738fca

View File

@ -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