From 4ed287735f4b9fced1e99b0cb4efcd7ec2a01104 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Wed, 26 Apr 2023 22:14:22 +0300 Subject: [PATCH] Only attempt nit-picky PR annotations for PRs --- .github/workflows/doc.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 3101b30231c355..28300d891ed2b0 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -56,11 +56,13 @@ jobs: # Add pull request annotations for Sphinx nitpicks (missing references) - name: 'Get list of changed files' + if: github.event_name == 'pull_request' id: changed_files uses: Ana06/get-changed-files@v2.2.0 with: filter: "Doc/**" - name: 'Build changed files in nit-picky mode' + if: github.event_name == 'pull_request' continue-on-error: true run: | # Mark files the pull request modified