This repository was archived by the owner on Mar 17, 2026. It is now read-only.
Daily Widget Check #92
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Daily Widget Check | |
| on: | |
| schedule: | |
| - cron: '0 4 * * *' # 4 AM UTC | |
| workflow_dispatch: | |
| jobs: | |
| check-widgets: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: 'recursive' | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install requests beautifulsoup4 | |
| - name: Start documentation server | |
| run: | | |
| docker pull ghcr.io/healthsamurai/documentation:latest | |
| docker run -d \ | |
| -p 8081:8081 \ | |
| -e BASE_URL=http://localhost:8081 \ | |
| -e DEV=true \ | |
| -e DOCS_PREFIX=/docs \ | |
| -e DOCS_REPO_PATH=/repo \ | |
| -e DOCS_VOLUME_PATH=/repo/docs-new \ | |
| -e PORT=8081 \ | |
| -e RELOAD_CHECK_INTERVAL_SEC=10 \ | |
| -e EXAMPLES_UPDATE_INTERVAL=1 \ | |
| -v $(pwd):/repo:ro \ | |
| --name docs-server \ | |
| --rm \ | |
| ghcr.io/healthsamurai/documentation:latest | |
| - name: Wait for server to start | |
| run: | | |
| timeout 120 bash -c 'until curl -f http://localhost:8081/docs/aidbox; do sleep 2; done' | |
| - name: Run widget check script | |
| run: | | |
| python3 scripts/check_unparsed_widgets.py | |
| - name: Cleanup | |
| if: always() | |
| run: | | |
| docker stop docs-server || true | |
| docker rm docs-server || true |