-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (42 loc) · 1.35 KB
/
plot_history.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
name: 📈 Publish History Plot
on:
schedule:
- cron: "0 0 1 * *"
workflow_dispatch:
permissions: write-all
jobs:
post-plot-history:
runs-on: ubuntu-latest
steps:
- name: 📀 Checks Repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: 🐍 Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
cache-dependency-path: requirements.txt
- name: 🔠 Add all locale support
run: |
sudo apt-get update
sudo apt-get install -y locales-all
sudo locale-gen pt_PT.UTF-8
sudo locale-gen pt_PT
sudo update-locale
export LC_ALL=C
- name: 📦 Install project requirements
run: pip install -r requirements.txt
- name: 📈 Generate History plot
env:
CONSUMER_KEY: ${{ secrets.CONSUMER_KEY }}
CONSUMER_SECRET: ${{ secrets.CONSUMER_SECRET }}
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
ACCESS_TOKEN_SECRET: ${{ secrets.ACCESS_TOKEN_SECRET }}
run: python plot_history.py
- name: 📎 Commit gas information with history
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main