Fix version table rendering by moving markers outside table
HTML comments between the separator and data rows break markdown table parsing. Markers now wrap the entire table (header included) and the pipeline regenerates the full table. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -70,11 +70,19 @@ jobs:
|
||||
|
||||
ARCH_BADGES='<img src="https://img.shields.io/badge/amd64-E65100" alt="amd64"> <img src="https://img.shields.io/badge/arm64-2e7d32" alt="arm64">'
|
||||
|
||||
# Build version rows from API data (sorted by major descending)
|
||||
README_ROWS=""
|
||||
DOCKERHUB_ROWS=""
|
||||
BADGE_VERSIONS=""
|
||||
# Table headers
|
||||
README_HEADER='| Version | <a href="https://hub.docker.com/r/svrnty/dotnet/tags?name=runtime-" target="_blank"><img src="https://img.shields.io/badge/runtime-blue?logo=docker" alt="runtime"></a> | <a href="https://hub.docker.com/r/svrnty/dotnet/tags?name=runtime-invariant-" target="_blank"><img src="https://img.shields.io/badge/runtime--invariant-blue?logo=docker" alt="runtime-invariant"></a> | <a href="https://hub.docker.com/r/svrnty/dotnet/tags?name=sdk-" target="_blank"><img src="https://img.shields.io/badge/sdk-blue?logo=docker" alt="sdk"></a> | Arch | EOL |'
|
||||
README_SEP='|---------|---------|-------------------|-----|------|-----|'
|
||||
DOCKERHUB_HEADER='| Version | `runtime` | `runtime-invariant` | `sdk` | Arch | EOL |'
|
||||
DOCKERHUB_SEP='|---------|-----------|---------------------|-------|------|-----|'
|
||||
|
||||
echo "$README_HEADER" > /tmp/readme_rows.txt
|
||||
echo "$README_SEP" >> /tmp/readme_rows.txt
|
||||
echo "$DOCKERHUB_HEADER" > /tmp/dockerhub_rows.txt
|
||||
echo "$DOCKERHUB_SEP" >> /tmp/dockerhub_rows.txt
|
||||
> /tmp/badge_versions.txt
|
||||
|
||||
# Build version rows from API data (sorted by major descending)
|
||||
echo "$SUPPORTED" | jq -r 'sort_by(.["channel-version"] | split(".") | map(tonumber)) | reverse | .[] | "\(.["channel-version"]) \(.["latest-runtime"]) \(.["latest-sdk"]) \(.["release-type"]) \(.["eol-date"] // "TBD")"' | \
|
||||
while read -r CHANNEL RUNTIME SDK TYPE EOL; do
|
||||
MAJOR=$(echo "$CHANNEL" | cut -d. -f1)
|
||||
|
||||
Reference in New Issue
Block a user