mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
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:
2
.github/workflows/api-docs.yml
vendored
2
.github/workflows/api-docs.yml
vendored
@@ -2,6 +2,7 @@
|
|||||||
name: Autogenerate API docs and types
|
name: Autogenerate API docs and types
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
types: [opened, synchronize, reopened, ready_for_review]
|
||||||
paths:
|
paths:
|
||||||
- 'src/nvim/api/*.[ch]'
|
- 'src/nvim/api/*.[ch]'
|
||||||
- 'src/nvim/eval.lua'
|
- 'src/nvim/eval.lua'
|
||||||
@@ -11,6 +12,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
regen-api-docs-and-types:
|
regen-api-docs-and-types:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event.pull_request.draft == false
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
Reference in New Issue
Block a user