Skip to content

Commit 9ce4461

Browse files
change branch order in checkout command 2
1 parent f38e27a commit 9ce4461

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
export FALLBACK_BRANCH=$([ "$GITHUB_BRANCH" == "master" ] && echo "main" && echo "master" || echo "develop")
5252
git submodule foreach --recursive git reset --hard
5353
git submodule foreach --recursive git clean -fdx
54-
git submodule foreach bash -c '(git checkout "${GITHUB_BRANCH}" || git checkout main || git checkout master || git checkout develop || git checkout "${FALLBACK_BRANCH}") && git pull'
54+
git submodule foreach bash -c '(git checkout "${GITHUB_BRANCH}" || git checkout main || git checkout develop || git checkout master || git checkout "${FALLBACK_BRANCH}") && git pull'
5555
git submodule foreach git rev-parse --abbrev-ref HEAD
5656
5757
- name: Run Script

0 commit comments

Comments
 (0)