Skip to content

Commit

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

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

jobs:
update:
runs-on: ubuntu-latest
jobs:
update:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
with:
# 确保拉取子模块
submodules: 'recursive'
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
- 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 709cb9c

Please sign in to comment.