name: Check Documentationon:pull_request:paths:- 'src/components/storage/scenarios/**'- 'src/components/*/**.jsx'- 'docs/generate-docs.js'push:branches: [main]paths:- 'src/components/storage/scenarios/**'- 'src/components/*/**.jsx'- 'docs/generate-docs.js'jobs:check-docs:runs-on: ubuntu-lateststeps:- name: Checkout repositoryuses: actions/checkout@v4- name: Setup Node.jsuses: actions/setup-node@v4with:node-version: '18'- name: Generate documentationrun: make docs- name: Check for documentation changesid: check_changesrun: |if git diff --quiet docs/installation-steps.rst; thenecho "✅ Documentation is up to date"echo "changes=false" >> $GITHUB_OUTPUTelseecho "❌ Documentation needs to be updated"echo "changes=true" >> $GITHUB_OUTPUTecho ""echo "=== Documentation changes needed ==="git diff docs/installation-steps.rstfi- name: Fail if documentation is outdatedif: steps.check_changes.outputs.changes == 'true'run: |echo "::error::Documentation is outdated. Please run 'make docs' and commit the changes."exit 1- name: Success messageif: steps.check_changes.outputs.changes == 'false'run: |echo "✅ All documentation is current and up to date!"