-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 960 Bytes
/
aggregateandplot.yml
File metadata and controls
44 lines (35 loc) · 960 Bytes
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: Aggregate and Plot Steffim Stats
on:
schedule:
- cron: "5 0 1 * *"
workflow_dispatch:
permissions:
contents: write
jobs:
aggregate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
ref: master
- uses: actions/setup-python@v6
with:
python-version: '3.10'
architecture: 'x64'
cache: 'pip'
- run: |
python3 -m pip install -r requirements.txt
- name: Download and aggregate steffim stats
run: |
python3 main.py aggregate
- name: Commit json to the repo
run: |
git config --global user.name "schicho/steffim"
git config --global user.email "steffim[bot]@schicho.github.io"
git add .
# Force the build to succeed, even if no files were changed
git commit -m 'Add historic data for the month' || true
git push
plot:
needs: aggregate
uses: ./.github/workflows/plot.yml