diff --git a/.github/workflows/R-CMD-check-CRAN-incoming.yaml b/.github/workflows/R-CMD-check-CRAN-incoming.yaml index 7bcb9df..1da3007 100644 --- a/.github/workflows/R-CMD-check-CRAN-incoming.yaml +++ b/.github/workflows/R-CMD-check-CRAN-incoming.yaml @@ -86,7 +86,7 @@ jobs: if-no-files-found: ignore - name: Find Comment - if: steps.rcmdcheck.outputs.notes > 0 + if: steps.rcmdcheck.outputs.notes > 0 && github.event_name == 'pull_request' uses: peter-evans/find-comment@v3 id: fc with: @@ -94,7 +94,7 @@ jobs: comment-author: 'github-actions[bot]' - name: Create or update comment - if: steps.rcmdcheck.outputs.notes > 0 + if: steps.rcmdcheck.outputs.notes > 0 && github.event_name == 'pull_request' uses: peter-evans/create-or-update-comment@v4 with: comment-id: ${{ steps.fc.outputs.comment-id }}