Skip to content

Update Submodules

Update Submodules #615

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