Skip to content

Submodule Update

Submodule Update #841

Workflow file for this run

on:
# pull_request:
schedule:
- cron: '0 0 * * *'
name: Submodule Update
jobs:
submodule_update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: config
run: |
git config user.name ${{ github.actor }}
git config user.email [email protected]
- name: submodule update
run: |
git fetch
git checkout master
git submodule init
git submodule update --remote
# git submodule foreach "git remote show origin | grep 'HEAD branch' | awk '{print \$NF}' | xargs -I{} git pull origin {}"
- name: commit
run: |
git add -A
git commit -m "update head [ci skip]" || true
- name: push
run: |
git push origin master