From 5348a8444080f4033778f9c00cb81d0f138aecc6 Mon Sep 17 00:00:00 2001 From: Max Inden Date: Thu, 14 Mar 2024 10:17:19 +0100 Subject: [PATCH] feat(.github/interop): use markdown table 1. Provide `--markdown` flag to QUIC Interop Runner to get markdown formatted table. 2. Ignore all log output, but table. --- .github/actions/quic-interop-runner/action.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/actions/quic-interop-runner/action.yml b/.github/actions/quic-interop-runner/action.yml index 4c2f695ab4..ef4865bde6 100644 --- a/.github/actions/quic-interop-runner/action.yml +++ b/.github/actions/quic-interop-runner/action.yml @@ -68,7 +68,7 @@ runs: cd quic-interop-runner jq --arg key "${{ inputs.name }}" --argjson newEntry '{"image": "${{ inputs.image }}", "url": "${{ inputs.url }}", "role": "${{ inputs.role }}"}' '.[$key] = $newEntry' implementations.json > temp.$$ && mv temp.$$ implementations.json cat implementations.json - ARGS="--log-dir logs --must-include ${{ inputs.name }}" + ARGS="--log-dir logs --markdown --must-include ${{ inputs.name }}" if [ -n "${{ inputs.client }}" ]; then ARGS="$ARGS --client ${{ inputs.client }}" fi @@ -92,9 +92,8 @@ runs: run: | echo '[**QUIC Interop Runner**](https://github.com/quic-interop/quic-interop-runner)' >> comment echo '' >> comment - echo '```' >> comment - cat quic-interop-runner/summary >> comment - echo '```' >> comment + # Ignore all, but table, which starts with "|:--". + cat quic-interop-runner/summary | awk '/^\|:--/{flag=1} flag' >> comment echo '' >> comment shell: bash