Skip to content

Commit

Permalink
Merge pull request #23 from huggingface/only_run_docbuild_when_necessary
Browse files Browse the repository at this point in the history
[Doc build] only run when necessary
  • Loading branch information
Mishig authored Feb 2, 2024
2 parents 33ffcfd + 3e7f540 commit 6267b22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Build documentation

on:
push:
paths:
- "notebooks/**"
- ".github/workflows/build_documentation.yml"
branches:
- main

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build_pr_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Build PR Documentation

on:
pull_request:
paths:
- "notebooks/**"
- ".github/workflows/build_pr_documentation.yml"

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand Down

0 comments on commit 6267b22

Please sign in to comment.