Skip to content

Commit 6267b22

Browse files
author
Mishig
authored
Merge pull request #23 from huggingface/only_run_docbuild_when_necessary
[Doc build] only run when necessary
2 parents 33ffcfd + 3e7f540 commit 6267b22

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/build_documentation.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Build documentation
22

33
on:
44
push:
5+
paths:
6+
- "notebooks/**"
7+
- ".github/workflows/build_documentation.yml"
58
branches:
69
- main
710

.github/workflows/build_pr_documentation.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Build PR Documentation
22

33
on:
44
pull_request:
5+
paths:
6+
- "notebooks/**"
7+
- ".github/workflows/build_pr_documentation.yml"
58

69
concurrency:
710
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}

0 commit comments

Comments
 (0)