File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -173,10 +173,15 @@ jobs:
173173 - name : Convert code_samples usages for comment
174174 if : steps.list.outputs.CODE_SAMPLES_CHANGE != '' && steps.diff.outputs.CODE_SAMPLES_DIFF != '0'
175175 run : |
176- echo '# code_samples/ change report' >> code_samples_usage.diff.md
176+ echo '# code_samples/ change report' > code_samples_usage.diff.md
177177 echo '' >> code_samples_usage.diff.md
178178 php tools/code_samples/code_samples_usage_diff2html.php $HOME/code_samples_usage.diff >> code_samples_usage.diff.md
179179 echo '<a href="${{ steps.artifact.outputs.artifact-url }}">Download colorized diff</a>' >> code_samples_usage.diff.md
180+ if [[ `wc -c < code_samples_usage.diff.md | xargs` -ge $((2**16)) ]]; then
181+ echo '# code_samples/ change report' > code_samples_usage.diff.md
182+ echo '' >> code_samples_usage.diff.md
183+ echo 'Diff is too long to be displayed.' >> code_samples_usage.diff.md
184+ fi
180185 - name : Find Comment
181186 id : find-comment
182187 uses : peter-evans/find-comment@v3
You can’t perform that action at this time.
0 commit comments