Skip to content

Commit

Permalink
fix: omit comment when empty
Browse files Browse the repository at this point in the history
  • Loading branch information
robproject committed Oct 22, 2023
1 parent 7adcf1a commit aee4544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
sed -i -n '/<pre class="ansi2html-content">/,/<\/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: |
Expand Down

0 comments on commit aee4544

Please sign in to comment.