-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 876 Bytes
/
plot.yml
File metadata and controls
39 lines (31 loc) · 876 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
name: Generate Steffim Plots
on: [workflow_dispatch, workflow_call]
permissions:
contents: write
jobs:
plot:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: master
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
architecture: 'x64'
cache: 'pip'
- name: Install requirements
run: |
python3 -m pip install -r requirements.txt
- name: Generate steffim plots
run: |
python3 main.py plot
- name: Commit svgs 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 'Update plots' || true
git push