mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2025-07-31 06:57:40 +08:00
Use git branch --list
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user