Skip to content

Regular update

Regular update #212

name: Regular update
on:
push:
branches:
- master
schedule:
- cron: '30 10 * * 0'
jobs:
regular_update:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: '3.x'
architecture: 'x64'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install PyYaml
- name: Update submodules
run: |
git submodule update --init --recursive
cd ./script
chmod +x ./update_submodules.sh
./update_submodules.sh
cd ../
- name: Update downloads
run: |
cd ./script
chmod +x ./update_download.py
./update_download.py
cd ../
- name: commit
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
if [ -n "$(git status --porcelain)" ]; then
git commit -m "Regular update"
git push origin master
fi