File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 58
58
jq --version || (sudo apt-get update && sudo apt-get install -y jq)
59
59
fi
60
60
61
+ - name : Install git-filter-repo
62
+ run : |
63
+ python3 -m pip install --user git-filter-repo
64
+ echo "$HOME/.local/bin" >> $GITHUB_PATH
65
+
61
66
- name : Split code into component repositories
62
67
env :
63
68
GH_TOKEN : ${{ secrets.GH_TOKEN }}
69
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
64
70
PACKAGIST_USERNAME : ${{ secrets.PACKAGIST_USERNAME }}
65
71
PACKAGIST_TOKEN : ${{ secrets.PACKAGIST_TOKEN }}
66
72
GH_CODESPLIT_EMAIL : ${{ secrets.GH_CODESPLIT_EMAIL }}
Original file line number Diff line number Diff line change @@ -55,7 +55,12 @@ split_and_push() {
55
55
# Prefer GH_TOKEN; fall back to GITHUB_TOKEN for GitHub Actions
56
56
token=" ${GH_TOKEN:- ${GITHUB_TOKEN:- } } "
57
57
58
- repo_url=" https://x-access-token:${token} @github.com/${org} /${repo_name} .git"
58
+ if [[ -n " $token " ]]; then
59
+ git config --global url." https://x-access-token:${token} @github.com/" .insteadOf " https://github.com/" || true
60
+ repo_url=" https://github.com/${org} /${repo_name} .git"
61
+ else
62
+ repo_url=
" [email protected] :${org} /${repo_name} .git"
63
+ fi
59
64
60
65
echo " ==> Splitting ${pkg_dir} -> ${org} /${repo_name} "
61
66
You can’t perform that action at this time.
0 commit comments