Skip to content

chore: update CI triggers to minify useless runs #1

chore: update CI triggers to minify useless runs

chore: update CI triggers to minify useless runs #1

name: Generate API References documentation
on:
pull_request:
types:
- opened
- synchronize
paths:
- faststream/**
- docs/**/api/**
permissions:
contents: write
jobs:
check-docs-changes:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
cache-dependency-path: pyproject.toml
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: pip install -e ".[dev]"
- name: Run build docs
run: bash scripts/build-docs.sh
- name: Check for changes
id: git-diff
run: git diff --exit-code