-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.38 KB
/
statistics.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
name: statistics
on:
schedule:
- cron: '0 9 * * 5' # every Friday at 9am UTC (11am Luxembourg)
jobs:
nbconvertstats:
runs-on: ubuntu-latest
name: stats_nbconvert
steps:
- name: checkout repo
uses: actions/checkout@v3
- name: deleting stats branch if exists
shell: bash
run: |
git push origin -d stats &>/dev/null || true
- name: extracting branch name & creating the new stats branch
shell: bash
run: |
git checkout -b stats
git push -u origin stats
id: creating_branch
- name: installing nbconvert & other required libraries
run: |
python -m pip install jupyter nbconvert nbformat notebook==6.4.12 pandas matplotlib
- name: setting up credentials
run: |
python3 defineenv.py "${{ secrets.JDH_USERNAME }}" "${{ secrets.JDH_PASSWORD }}" "${{ secrets.JDH_GITHUB_API }}"
- name: running nbconvert
run: |
jupyter nbconvert --execute --to notebook --inplace --ExecutePreprocessor.timeout=-1 jdh_statistics.ipynb
- name: deleting credentials from local environment
run: |
rm "credentials.json"
- name: committing changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Automated commit
branch: stats
create_branch: true