diff --git a/.github/workflows/build_documentation.yml b/.github/workflows/build_documentation.yml index 05ea1b2122de..17d65b07e96e 100644 --- a/.github/workflows/build_documentation.yml +++ b/.github/workflows/build_documentation.yml @@ -7,6 +7,10 @@ on: - doc-builder* - v*-release - v*-patch + paths: + - "src/diffusers/**.py" + - "examples/" + - "docs/" jobs: build: diff --git a/.github/workflows/build_pr_documentation.yml b/.github/workflows/build_pr_documentation.yml index 33f09b309d49..267381fd64e7 100644 --- a/.github/workflows/build_pr_documentation.yml +++ b/.github/workflows/build_pr_documentation.yml @@ -2,6 +2,10 @@ name: Build PR Documentation on: pull_request: + paths: + - "src/diffusers/**.py" + - "examples/" + - "docs/" concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}