Update updates-submodules.yaml #6
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: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# with: | |
# submodules: recursive | |
- name: Update module | |
run: | | |
echo A | |
ls | |
echo B | |
git submodule foreach 'git reset --hard && git checkout . && git clean -fdx' | |
echo C | |
git submodule update --init --recursive --rebase --force | |
echo D | |
#git submodule update --init --recursive --checkout -f --remote | |
ls | |
echo E | |
git config --global user.name "GitHub Action" | |
echo F | |
git config --global user.email "[email protected]" | |
echo G | |
git status | |
echo H | |
git commit -am "Update git submodules" | |
echo J | |
git push | |
echo K |