Update Submodules #603
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 Submodules | |
on: | |
schedule: | |
- cron: '30 0,8,16 * * *' | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checks out the repo | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Update submodules | |
run: | | |
cd external/original-content && git checkout main && git pull origin main --ff-only | |
cd ../translated-content && git checkout master && git pull origin master --ff-only | |
cd ../../ | |
- name: Commit update | |
run: | | |
[ $(git status --porcelain | wc -l) -eq "0" ] && exit 0; | |
git config --global user.name 'Mykola Myslovskyi' | |
git config --global user.email '${{ secrets.EMAIL }}' | |
git commit -am "chore: update submodules" && git push |