File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -30,14 +30,15 @@ jobs:
30
30
- uses : ./.github/actions/fetch-codeql
31
31
32
32
- name : QHelp preview
33
- if : ${{ steps.changes.outputs.qhelp_files }}
34
33
run : |
35
- ( echo "QHelp previews:";
36
- cat "${{ runner.temp }}/paths.txt" | while read path; do
37
- echo "<details> <summary>${path}</summary>"
38
- echo
39
- codeql generate query-help --format=markdown "${path}"
40
- echo "</details>"
41
- done) | gh pr comment "${{ github.event.pull_request.number }}" -F -
34
+ if [ -s "${{ runner.temp }}/paths.txt" ]; then
35
+ ( echo "QHelp previews:";
36
+ cat "${{ runner.temp }}/paths.txt" | while read path; do
37
+ echo "<details> <summary>${path}</summary>"
38
+ echo
39
+ codeql generate query-help --format=markdown "${path}"
40
+ echo "</details>"
41
+ done) | gh pr comment "${{ github.event.pull_request.number }}" -F -
42
+ fi
42
43
env :
43
44
GITHUB_TOKEN : ${{ github.token }}
You can’t perform that action at this time.
0 commit comments