Submodules Sync #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update git submodules | |
on: | |
workflow_dispatch: | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Update module | |
run: | | |
ls | |
git submodule foreach 'git reset --hard && git checkout . && git clean -fdx' | |
git submodule update --init --recursive --rebase --force | |
#git submodule update --init --recursive --checkout -f --remote | |
ls | |
git config --global user.name "GitHub Action" | |
git config --global user.email "[email protected]" | |
git status | |
git commit -am "Update git submodules" | |
git push |