-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (30 loc) · 975 Bytes
/
notebook.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
name: Generate Notebook and README
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
notebook:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Create Notebook
uses: addnab/docker-run-action@v3
with:
image: mateusvrs/cp-notebook:v1.0 # Thank you mateusvrs
options: -w /usr/src/app -v ${{ github.workspace }}:/usr/src/app
run: apt-get update && apt-get install -y asymptote texlive-full && make notebook readme
- name: Notebook Update - Auto Commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
file_pattern: "notebook.pdf"
commit_message: "updates notebok"
- name: README Update - Auto Commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
file_pattern: "README.md"
commit_message: "update README to match with notebook"