Merge pull request #17813 from muniter/jl-ci-api-docs-permissions

fix(ci): provide necessary permissions for calling workflow
This commit is contained in:
James McCoy
2022-03-22 06:52:09 -04:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

View File

@@ -12,6 +12,9 @@ on:
jobs: jobs:
call-regen-api-docs: call-regen-api-docs:
if: github.event.pull_request.draft == false if: github.event.pull_request.draft == false
permissions:
contents: write
pull-requests: write
uses: ./.github/workflows/api-docs.yml uses: ./.github/workflows/api-docs.yml
with: with:
check_only: true check_only: true

View File

@@ -60,7 +60,7 @@ jobs:
exit 1 exit 1
- name: Automatic PR - name: Automatic PR
if: ${{ steps.docs.outputs.UPDATED_DOCS != 0 }} if: ${{ steps.docs.outputs.UPDATED_DOCS != 0 && !inputs.check_only }}
run: | run: |
git add -u git add -u
git commit -m 'docs: regenerate [skip ci]' git commit -m 'docs: regenerate [skip ci]'