File: docs.yml

package info (click to toggle)
neovim 0.11.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 64,320 kB
  • sloc: ansic: 264,714; python: 1,472; lisp: 1,237; sh: 1,137; makefile: 383; xml: 85; ruby: 6
file content (26 lines) | stat: -rw-r--r-- 720 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: docs
on:
  pull_request:
    types: [opened, synchronize, reopened, ready_for_review]
jobs:
  docs:
    runs-on: ubuntu-latest
    if: github.event.pull_request.draft == false
    permissions:
      contents: write
      pull-requests: write
    steps:
      - uses: actions/checkout@v4
      - uses: ./.github/actions/setup

      - name: Generate docs
        run: |
          make doc
          if [ -n "$(git status --porcelain)" ]; then
            echo "::error::Job failed, run 'make doc' and commit your doc changes."
            echo "::error::The doc generation produces the following changes:"
            git diff --color --exit-code
          fi

      - name: Validate docs
        run: make lintdoc