ci: skip api-doc workflow on draft PRs

Checking the documentation generation is mostly useful towards the end
of a pull request like with the lintcommit workflow.
This commit is contained in:
dundargoc 2023-11-11 12:50:48 +01:00 committed by dundargoc
parent 8e58d37f2e
commit b2ca768196

View File

@ -2,6 +2,7 @@
name: Autogenerate API docs and types
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- 'src/nvim/api/*.[ch]'
- 'src/nvim/eval.lua'
@ -11,6 +12,7 @@ on:
jobs:
regen-api-docs-and-types:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
permissions:
contents: write
pull-requests: write