From b62dd9271a1a7e8adcbea38f9b27efac2af6455d Mon Sep 17 00:00:00 2001 From: routhleck Date: Mon, 3 Feb 2025 21:39:07 +0800 Subject: [PATCH] Update update-submodules.yml --- .github/workflows/update-submodules.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-submodules.yml b/.github/workflows/update-submodules.yml index ab3753e..c70cc4f 100644 --- a/.github/workflows/update-submodules.yml +++ b/.github/workflows/update-submodules.yml @@ -23,10 +23,11 @@ jobs: run: | git config --global user.name "GitHub Actions" git config --global user.email "actions@github.com" + git remote set-url origin https://x-access-token:${{ secrets.TPA_TOKEN }}@github.com/${{ github.repository }}.git - name: Update Submodules run: | - git submodule update --remote --merge + git submodule update --init --remote --force if [[ $(git status --porcelain) ]]; then git add .