Skip to content

Commit 92e34f6

Browse files
committed
debug workflows
1 parent f9116de commit 92e34f6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/update_submodule.yaml

+8-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
schedule:
99
- cron: "0 0 * * *" # daily update
1010

11+
permissions:
12+
contents: write # 确保有对仓库内容的写权限
13+
pull-requests: write # 如果涉及拉取请求,也需要相应权限
14+
1115
jobs:
1216
update-submodules:
1317
runs-on: ubuntu-latest
@@ -16,12 +20,15 @@ jobs:
1620
- name: Checkout repository
1721
uses: actions/checkout@v3
1822
with:
19-
submodules: recursive # update all submodules
23+
submodules: recursive # update all submoduleswith:
24+
fetch-depth: 0 # fetch all history for all tags and branches
2025

2126
- name: Update submodules to latest commit
2227
run: |
2328
git config --global user.name "GitHub Actions Bot"
2429
git config --global user.email "[email protected]"
30+
git submodule status
31+
git submodule update --init --recursive
2532
git submodule update --remote --merge
2633
2734
if [[ $(git status --porcelain) ]]; then

0 commit comments

Comments
 (0)