mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2025-07-21 23:56:09 +08:00
Use git branch --list
This commit is contained in:
@@ -65,7 +65,7 @@ _switch_to_branch() {
|
|||||||
# If not create one
|
# If not create one
|
||||||
|
|
||||||
|
|
||||||
if [ -n "$(git branch | grep $INPUT_BRANCH)" ]
|
if [ -n "$(git branch --list $INPUT_BRANCH)" ]
|
||||||
then
|
then
|
||||||
|
|
||||||
# Switch to branch from current Workflow run
|
# Switch to branch from current Workflow run
|
||||||
|
Reference in New Issue
Block a user