-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (45 loc) · 1.36 KB
/
actions.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
45
46
47
48
49
50
51
52
53
54
name: generate new data
on:
schedule:
- cron: '0 6 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: pip install pandas plotly==5.24.0
- name: Run main script
env:
SOME_SECRET: ${{ secrets.TOKEN }}
run: |
python dump.py
python leaderboard.py
python legendaries.py
python update_csv.py
python make_plots.py
- name: Get current date
run: echo "NOW=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Commit and Push JSON
run: |
git config --local user.email "[email protected]"
git config --local user.name "Actions"
git add "files/Legendaries*.json"
git add "files/leaderboard.txt"
git add "data/*.json"
git add "data/*.xml"
git add "files/trades.csv"
git add "files/*.html"
git commit -m "(${{ env.NOW }}) Update"
git push
- name: push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.TOKEN }}
branch: main