"vscode:/vscode.git/clone" did not exist on "f912f39b50f87e50a9d99346f5c1b6e644653262"
Unverified Commit 5df4c7c0 authored by Mishig's avatar Mishig Committed by GitHub
Browse files

[docs] Build docs only when doc files change (#812)

Build docs only when change happens in `docs/source`

See for example
https://github.com/huggingface/api-inference/blob/main/.github/workflows/build_documentation.yml#L3-L8
parent e58ad6dd
...@@ -2,6 +2,8 @@ name: Build documentation ...@@ -2,6 +2,8 @@ name: Build documentation
on: on:
push: push:
paths:
- "docs/source/**"
branches: branches:
- main - main
- doc-builder* - doc-builder*
......
...@@ -2,6 +2,8 @@ name: Build PR Documentation ...@@ -2,6 +2,8 @@ name: Build PR Documentation
on: on:
pull_request: pull_request:
paths:
- "docs/source/**"
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment