commit 04d2476d3a47e6aabfe8290311a2d8c67fd5cc16
parent 0c02e8a62b1570be15db01d45969d2759a7f37bf
Author: James McCoy <jamessan@jamessan.com>
Date: Tue, 22 Mar 2022 06:52:09 -0400
Merge pull request #17813 from muniter/jl-ci-api-docs-permissions
fix(ci): provide necessary permissions for calling workflow
Diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/api-docs-check.yml b/.github/workflows/api-docs-check.yml
@@ -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
diff --git a/.github/workflows/api-docs.yml b/.github/workflows/api-docs.yml
@@ -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]'