File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,16 @@ for _i in "${@}" ; do
18
18
19
19
done
20
20
21
- readarray -t _git_branches < <( git branch --list " ${_git_subtree_branch_prefix} * " )
21
+ if [[ -n " ${ENABLE_SUBTREE_PUSH} " ]] ; then
22
22
23
- for _i in " ${_git_branches[@]} " ; do
23
+ readarray -t _git_branches < <( git branch --list " ${_git_subtree_branch_prefix} * " )
24
24
25
- _git_subtree_branch=" ${_i} "
26
- _git_remote_repo_name=" ${_git_subtree_branch# ${_git_subtree_branch_prefix} } "
27
- git push " https://x-access-token:${ACCESS_TOKEN} @github.com/${GITHUB_OWNER} /${_git_remote_repo_name} .git" " ${_git_subtree_branch} :${_git_branch} "
25
+ for _i in " ${_git_branches[@]} " ; do
28
26
29
- done
27
+ _git_subtree_branch=" ${_i} "
28
+ _git_remote_repo_name=" ${_git_subtree_branch# ${_git_subtree_branch_prefix} } "
29
+ git push " https://x-access-token:${ACCESS_TOKEN} @github.com/${GITHUB_OWNER} /${_git_remote_repo_name} .git" " ${_git_subtree_branch} :${_git_branch} "
30
+
31
+ done
32
+
33
+ fi
You can’t perform that action at this time.
0 commit comments