diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 6c706ba..f9cbec0 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -36,7 +36,7 @@ jobs: sed -i -n '/
/,/<\/pre>/p' diff_output.html
       
       - name: Post comment
-        if: github.event_name == 'pull_request'
+        if: github.event_name == 'pull_request' && $(grep -qE "\S" diff_output.html)
         uses: actions/github-script@v6
         with:
           script: |