File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,19 +20,19 @@ jobs:
2020
2121 - name : Safe submodule initialization
2222 env :
23- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
23+ GITHUB_TOKEN : ${{ secrets.BOT_TOKEN }}
2424 run : |
2525 git config --global user.name "github-actions[bot]"
2626 git config --global user.email "github-actions[bot]@users.noreply.github.com"
2727
28- git config --global url."https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/".insteadOf "git@github.com:"
29- git config --global url."https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/".insteadOf "https://github.com/"
28+ git config --global url."https://x-access-token:${{ secrets.BOT_TOKEN }}@github.com/".insteadOf "git@github.com:"
29+ git config --global url."https://x-access-token:${{ secrets.BOT_TOKEN }}@github.com/".insteadOf "https://github.com/"
3030
3131 if [ -f .gitmodules ]; then
3232 echo "Converting SSH URLs to HTTPS in .gitmodules"
3333 sed -i 's|git@github.com:|https://github.com/|g' .gitmodules
3434 git config --file=.gitmodules --get-regexp url | while read key url; do
35- new_url=$(echo "$url" | sed "s|https://github.com/|https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/|g")
35+ new_url=$(echo "$url" | sed "s|https://github.com/|https://x-access-token:${{ secrets.BOT_TOKEN }}@github.com/|g")
3636 git config --file=.gitmodules "${key}" "${new_url}"
3737 done
3838 cat .gitmodules
You can’t perform that action at this time.
0 commit comments