-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (35 loc) · 988 Bytes
/
auto_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
name: Automatic update
run-name: Automatic update of class model
on:
schedule:
- cron: "0 4 * * *" # every day at 4am
workflow_dispatch:
jobs:
auto_update:
runs-on: ubuntu-latest
defaults:
run:
working-directory: .
concurrency: auto_update
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Python dependencies
uses: py-actions/py-dependency-install@v4
with:
path: "requirements_update.txt"
- name: Run automatic update
run: python3 automatic_update.py
working-directory: ./model_update
- name: Commit files
working-directory: .
run: |
git pull
git config user.name github-actions
git config user.email [email protected]
git commit -m "auto updated class model"
git push