aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2023-11-11 12:50:48 +0100
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2023-11-11 13:50:53 +0100
commitb2ca768196af87b93c90e315747d166f5d8d931c (patch)
tree40a8fd301a27232922e5e8711caea05ab1d62248
parent8e58d37f2e15ac8540377148e55ed08a039aadb6 (diff)
downloadrneovim-b2ca768196af87b93c90e315747d166f5d8d931c.tar.gz
rneovim-b2ca768196af87b93c90e315747d166f5d8d931c.tar.bz2
rneovim-b2ca768196af87b93c90e315747d166f5d8d931c.zip
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.
-rw-r--r--.github/workflows/api-docs.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/.github/workflows/api-docs.yml b/.github/workflows/api-docs.yml
index cb72daf9ad..2cecd2af6d 100644
--- a/.github/workflows/api-docs.yml
+++ b/.github/workflows/api-docs.yml
@@ -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