-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.47 KB
/
daily.yaml
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
45
46
47
name: Daily
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *" # Run everyday
permissions:
contents: write
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout repo content
uses: actions/checkout@v2 # Checkout the repository content to github runner.
- name: Set up python
uses: actions/setup-python@v1 # Set up the python 3.10 environment
with:
python-version: "3.12"
- name: Install dependencies with pipenv
run: |
pip install pipenv
pipenv install --deploy --dev
- name: Execute python script # Run the main.py script to get the latest data
run: |
make run
- name: Post script cleanup
run: |
pipenv run isort --diff .
pipenv run black --check .
pipenv run flake8
pipenv run mypy
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore: daily vaults update"
file_pattern: "Data.md state.json"
commit_user_name: "github-actions[bot]"
commit_user_email: "github-actions[bot]@users.noreply.github.com"
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"