Check content #911
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: Check content | |
on: | |
schedule: | |
- cron: '30 20 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checks out the repo | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Update submodules | |
run: | | |
cd external/interactive-examples && git checkout master && git pull origin master --ff-only | |
cd ../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 config --global user.name 'Mykola Myslovskyi' | |
git config --global user.email '${{ secrets.EMAIL }}' | |
git commit -am "chore: update submodules" && git push |