Skip to content

Commit 3b94ab5

Browse files
committed
test test1
1 parent 5d06d30 commit 3b94ab5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/create-git-branch-package-on-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)