From b55e65980ab44c7e0e0999b79bec8c06240489d2 Mon Sep 17 00:00:00 2001 From: Javier López Date: Mon, 21 Mar 2022 22:40:24 -0500 Subject: fix(ci): provide necessary permissions for calling workflow Also error on the side of security adding an extra check on the automatic PR step. --- .github/workflows/api-docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github/workflows/api-docs.yml') diff --git a/.github/workflows/api-docs.yml b/.github/workflows/api-docs.yml index 36ac087c4a..7550af6fef 100644 --- 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]' -- cgit