diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e528cd54..85abca91 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -349,7 +349,7 @@ jobs: # minutes (review PR #149, glm-5.2 F2). - name: red-first - proof against merge base id: rf_run - if: ${{ !cancelled() && steps.setup.outcome == 'success' && steps.rf_plan.outcome == 'success' && steps.rf_plan.outputs.count != '0' && steps.rf_plan.outputs.count != '' }} + if: ${{ !cancelled() && github.event_name == 'pull_request' && steps.setup.outcome == 'success' && steps.rf_plan.outcome == 'success' && steps.rf_plan.outputs.count != '0' && steps.rf_plan.outputs.count != '' }} continue-on-error: true timeout-minutes: 25 env: diff --git a/docs/diagrams/export-svg.mjs b/docs/diagrams/export-svg.mjs index c027f1a0..26f81e38 100644 --- a/docs/diagrams/export-svg.mjs +++ b/docs/diagrams/export-svg.mjs @@ -14,6 +14,7 @@ import { createRequire } from 'node:module'; import { readFileSync, writeFileSync } from 'node:fs'; import { resolve } from 'node:path'; import { pathToFileURL } from 'node:url'; +import { stripComments } from './strip-comments.mjs'; const { chromium } = createRequire(import.meta.url)('playwright-core'); const [, , mode, ...args] = process.argv; @@ -121,7 +122,7 @@ ${Object.keys(T.t).map((k) => `svg [data-node-id] > rect:not(.c-mask).c-${k}{fil await browser.close(); } // Drop indentation between tags, but whitespace touching a tspan is text: one space. - const out = svg.replace(//g, '').replace(/>\s+<(?!\/?tspan\b)/g, '><').replace(/>\s+ <'); + const out = stripComments(svg).replace(/>\s+<(?!\/?tspan\b)/g, '><').replace(/>\s+ <'); writeFileSync(outSvg, out); console.log(`${outSvg}: ${Buffer.byteLength(out)} bytes,