kopia lustrzana https://github.com/onthegomap/planetiler
tweak diff message
rodzic
ff024a098a
commit
eea8455156
|
|
@ -33,50 +33,36 @@ jobs:
|
|||
run: echo "::set-output name=pr_number::$(cat build-info/pull_request_number)"
|
||||
- name: 'Build comment-body'
|
||||
run: |
|
||||
cat build-info/branchlogs.txt | sed -n '/^.*Tile stats/,$p' > branchsummary.txt
|
||||
cat build-info/branchlogs.txt | sed -n '/^.*Tile stats/,/\tfeatures\t/p' > branchsummary.txt
|
||||
cat build-info/branchlogs.txt | sed -n '/^.*Exception in thread/,$p' >> branchsummary.txt
|
||||
cat build-info/baselogs.txt | sed -n '/^.*Tile stats:/,$p' > basesummary.txt
|
||||
cat build-info/baselogs.txt | sed -n '/^.*Tile stats/,/\tfeatures\t/p' > basesummary.txt
|
||||
cat build-info/baselogs.txt | sed -n '/^.*Exception in thread/,$p' >> basesummary.txt
|
||||
|
||||
cat << EOF > comment-body.txt
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Base $(cat build-info/base_sha)</th>
|
||||
<th>This Branch $(cat build-info/branch_sha)</th>
|
||||
<th>Base $(cat build-info/base_sha)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
\`\`\`
|
||||
$(cat basesummary.txt)
|
||||
$(cat branchsummary.txt)
|
||||
\`\`\`
|
||||
</td>
|
||||
<td>
|
||||
|
||||
\`\`\`
|
||||
$(cat build-info/branchlogs.txt | sed -n '/^.*Tile stats:/,$p')
|
||||
$(cat basesummary.txt)
|
||||
\`\`\`
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
https://github.com/onthegomap/planetiler/actions/runs/${{ github.event.workflow_run.id }}
|
||||
|
||||
<details><summary>ℹ️ <strong>Base Logs $(cat build-info/base_sha)</strong></summary>
|
||||
|
||||
\`\`\`
|
||||
$(cat build-info/baselogs.txt)
|
||||
\`\`\`
|
||||
</details>
|
||||
|
||||
<details><summary>ℹ️ <strong>This Branch Logs $(cat build-info/branch_sha)</strong></summary>
|
||||
|
||||
\`\`\`
|
||||
$(cat build-info/branchlogs.txt)
|
||||
\`\`\`
|
||||
</details>
|
||||
Full logs: https://github.com/onthegomap/planetiler/actions/runs/${{ github.event.workflow_run.id }}
|
||||
EOF
|
||||
|
||||
- name: 'Dump comment body'
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue