Skip to content

Commit ca00f9e

Browse files
committed
Restrict workflows to subfolders.
Only run code checks when code/ is touched; latex when talk/ is touched.
1 parent 3585729 commit ca00f9e

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

.github/workflows/build-exercises.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
name: Build exercises
2-
on: [ push, pull_request ]
2+
on:
3+
push:
4+
paths:
5+
- 'code/**'
6+
pull_request:
7+
paths:
8+
- 'code/**'
9+
- '.github/workflows/**'
310

411
# Cancel running jobs on force-push
512
concurrency:

.github/workflows/build-slides.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
name: Build LaTeX slides
2-
on: [push,pull_request]
2+
on:
3+
push:
4+
paths:
5+
- 'talk/**'
6+
pull_request:
7+
paths:
8+
- 'talk/**'
9+
- '.github/workflows/**'
310

411
# Cancel running jobs on force-push
512
concurrency:

.github/workflows/publish-slides.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Publish LaTeX slides
22
on:
33
push:
4+
paths:
5+
- 'talk/**'
46
branches:
57
- master
68

0 commit comments

Comments
 (0)