-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (45 loc) · 1.49 KB
/
graph.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
name: Issue Graph
on:
push:
schedule:
- cron: '0 1 * * *'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install deps
run: |
sudo apt-get update
sudo apt-get -y install gnuplot make
python -m pip install --upgrade pip
pip install github3.py
- name: Compile
run: make
- name: Artifacts
uses: actions/upload-artifact@v2
with:
name: issue-graph
path: |
graph.png
retention-days: 2
- name: Commit graph
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "parazyd"
git commit -m "Add today's graph" graph.png result.tsv
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}