diff --git a/entrypoint.sh b/entrypoint.sh index 3890c05..5986d5b 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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