]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-103884: Docs CI: Only attempt nit-picky PR annotations for PRs (#103889)
authorHugo van Kemenade <hugovk@users.noreply.github.com>
Wed, 26 Apr 2023 20:20:19 +0000 (23:20 +0300)
committerGitHub <noreply@github.com>
Wed, 26 Apr 2023 20:20:19 +0000 (20:20 +0000)
.github/workflows/doc.yml

index 3101b30231c3559a71ee19a2f8f4af338df97f42..28300d891ed2b02d26c38757c884eb32bbdbd8e4 100644 (file)
@@ -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