havre.py: the exported file's shell lines as block scalars, so a colon in them doesn't break the YAML

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VAvUH72XsdCitHdh3t7mjr
This commit is contained in:
teahubxyzandClaude Fable 5.1 committed 2026-10-20 03:15:57 +00:00
1 parent dd2bbfb85e
commit 6e09057107
1 file changed
+4 -2
+4 -2
View File
@@ -1004,7 +1004,8 @@ export function toActionsYaml(wf: Workflow): string {
lines.push(` node-version: 22`)
if (needsFfmpeg) {
lines.push(` - name: ffmpeg, for Cover + Track`)
lines.push(` run: command -v ffmpeg >/dev/null || sudo apt-get install -y -qq ffmpeg >/dev/null || apt-get install -y -qq ffmpeg >/dev/null`)
lines.push(` run: |`)
lines.push(` command -v ffmpeg >/dev/null || sudo apt-get install -y -qq ffmpeg >/dev/null || apt-get install -y -qq ffmpeg >/dev/null`)
}
lines.push(` - name: the runner`)
lines.push(` run: |`)
@@ -1016,7 +1017,8 @@ export function toActionsYaml(wf: Workflow): string {
lines.push(` - name: ${q(`${n.id} (${s?.label ?? n.data.nodeType})`)}`)
if (n.data.nodeType === 'textInput') {
// the dispatch input, if one was given, else what the canvas holds
lines.push(` run: printf '%s' "$INPUT" > out/${n.id}.txt && echo "${n.id}: $INPUT"`)
lines.push(` run: |`)
lines.push(` printf '%s' "$INPUT" > out/${n.id}.txt && echo "${n.id} = $INPUT"`)
lines.push(` env:`)
lines.push(` INPUT: \${{ inputs.${n.id} }}`)
} else {