forked from mateusvrs/competitive-programming
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (32 loc) · 1.1 KB
/
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
39
40
41
42
name: Generate Notebook - PDF
on:
push:
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
options: -w /usr/src/app -v ${{ github.workspace }}:/usr/src/app
run: make team_name="Anões do TLE"
- name: Format Files (Clang) - Auto Commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
file_pattern: '*.cpp'
commit_message: "clang(format): cpp files correct indentation"
- name: Notebook Update - Auto Commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
file_pattern: 'notebook.pdf'
commit_message: "notebook(pdf): update to latest version"
- name: README Update - Auto Commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
file_pattern: 'README.md'
commit_message: "docs(readme): update to match with notebook"