name: "Docs / Build PR" # For more information, # see https://sphinx-theme.scylladb.com/stable/deployment/production.html#available-workflows permissions: contents: read env: FLAG: ${{ github.repository == 'scylladb/scylla-enterprise' && 'enterprise' || 'opensource' }} on: pull_request: branches: - master - enterprise paths: - "docs/**" - "db/config.hh" - "db/config.cc" jobs: build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 with: persist-credentials: false fetch-depth: 0 - name: Set up Python uses: actions/setup-python@v5 with: python-version: "3.12" - name: Install uv uses: astral-sh/setup-uv@v6 - name: Set up env run: make -C docs FLAG="${{ env.FLAG }}" setupenv - name: Build docs run: make -C docs FLAG="${{ env.FLAG }}" test