From f0ead6049d77ed4b1d81e3a6faf9498f60d8f43f Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 3 Mar 2026 17:04:06 +0100 Subject: [PATCH] fix(ci): remove HTML comments inside table that break markdown rendering --- .github/workflows/preview.yml | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 37650e92d..b646cfae1 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -75,8 +75,6 @@ jobs: const base = 'preview.vikunja.dev'; const image = `ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}`; const marker = ''; - const shaMarker = ''; - const shaMarkerEnd = ''; const prTag = `pr-${prNumber}`; const shaTag = `sha-${fullSha}`; @@ -92,15 +90,9 @@ jobs: const existing = comments.find(c => c.body.includes(marker)); if (existing) { - const match = existing.body.match( - new RegExp(`${shaMarker}\\n([\\s\\S]*?)\\n${shaMarkerEnd}`) - ); - if (match) { - previousShaRows = match[1] - .split('\n') - .map(l => l.trim()) - .filter(l => l.startsWith('|')); - } + previousShaRows = existing.body + .split('\n') + .filter(l => l.includes(`sha-`) && l.includes(`.${base}`)); } // Remove duplicate if this SHA was already recorded @@ -117,9 +109,7 @@ jobs: `| URL | Tag | Commit |`, `| --- | --- | --- |`, `| https://${prTag}.${base} | \`${image}:${prTag}\` | latest |`, - shaMarker, allShaRows, - shaMarkerEnd, ``, `The preview environment will start automatically on first visit. Subsequent pushes to this PR will update the \`${prTag}\` image — the preview picks up the new version on restart. The per-commit URLs point to a specific version and will not change.`, ``,