Skip to content

Commit

Permalink
Create update-submodules.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
czyt authored Apr 17, 2024
1 parent 852cc88 commit 5a70f40
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/update-submodules.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Update Submodules

on:
schedule:
- cron: '0 */6 * * *'

jobs:
update:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
with:
# 确保拉取子模块
submodules: 'recursive'

- name: Update Submodules
run: |
git submodule update --remote --recursive
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -am "Automatically update submodules"
git push

0 comments on commit 5a70f40

Please sign in to comment.