-
Notifications
You must be signed in to change notification settings - Fork 17
44 lines (44 loc) · 1.19 KB
/
regular_update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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