mirror of
https://github.com/neovim/neovim.git
synced 2025-11-30 06:00:42 +00:00
Merge pull request #17813 from muniter/jl-ci-api-docs-permissions
fix(ci): provide necessary permissions for calling workflow
This commit is contained in:
3
.github/workflows/api-docs-check.yml
vendored
3
.github/workflows/api-docs-check.yml
vendored
@@ -12,6 +12,9 @@ on:
|
||||
jobs:
|
||||
call-regen-api-docs:
|
||||
if: github.event.pull_request.draft == false
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
uses: ./.github/workflows/api-docs.yml
|
||||
with:
|
||||
check_only: true
|
||||
|
||||
2
.github/workflows/api-docs.yml
vendored
2
.github/workflows/api-docs.yml
vendored
@@ -60,7 +60,7 @@ jobs:
|
||||
exit 1
|
||||
|
||||
- name: Automatic PR
|
||||
if: ${{ steps.docs.outputs.UPDATED_DOCS != 0 }}
|
||||
if: ${{ steps.docs.outputs.UPDATED_DOCS != 0 && !inputs.check_only }}
|
||||
run: |
|
||||
git add -u
|
||||
git commit -m 'docs: regenerate [skip ci]'
|
||||
|
||||
Reference in New Issue
Block a user