name: Build documentation on: pull_request: paths: - 'ydb/docs/**' jobs: build-docs: concurrency: group: docs-build-${{ github.ref }} cancel-in-progress: true runs-on: ubuntu-latest steps: - name: Update integrated status shell: bash run: | curl -L -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{github.token}}" -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/${{github.repository}}/statuses/${{github.event.pull_request.head.sha}} \ -d '{"state":"pending","description":"Waiting for relevant checks to complete","context":"checks_integrated"}' - name: Checkout uses: actions/checkout@v3 - name: Build uses: diplodoc-platform/docs-build-action@v3 with: revision: "pr-${{ github.event.pull_request.number }}-${{ github.event.pull_request.head.sha }}" src-root: "./ydb/docs" - name: Update integrated status shell: bash run: | curl -L -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{github.token}}" -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/${{github.repository}}/statuses/${{github.event.pull_request.head.sha}} \ -d '{"state":"success","description":"All checks completed","context":"checks_integrated"}'