fix(ci): unblock release-packages workflow YAML parse (#639)

The `actions/github-script` block for the backlog-issue step used a JS
template literal whose markdown body lines sat at column 1, outside the
`script: |` literal block. YAML treated those lines as new mapping keys
and rejected the whole file — every run of release-packages.yml failed
at load time with zero jobs executed, so the brew tap, apt repo, npm
publish, linux-arm64 CLI, and smoke tests never ran for recent releases.

- Rewrite the issue body as a string array joined with `\n`, so every
  line lives inside the block scalar at the correct indentation.
- Fix stray backslash-escapes around the final `core.info(...)` template
  literal that were JS-invalid even before YAML choked on the body.

Validated locally with PyYAML; file now parses cleanly.
This commit is contained in:
CodeGhost21
2026-04-17 12:49:37 -07:00
committed by GitHub
parent 5082f3e741
commit c4ef14383d
+29 -27
View File
@@ -293,36 +293,38 @@ jobs:
});
} catch (_) { /* label may already exist */ }
const body = `## Summary
Track remaining package manager channels. Each tier reflects expected maintenance commitment from the core team.
## Tier 1 — Official (core team maintains)
- [ ] **npx / pnpm dlx** — zero-install via the npm package already published; document the one-liner: \`npx openhuman@latest\`
- [ ] **Scoop (Windows)** — needs a Windows binary (un-comment the Windows matrix in \`release.yml\` first); add a \`tinyhumansai/scoop-openhuman\` bucket
## Tier 2 — Community-supported (PRs welcome, core team reviews)
- [ ] **AUR (Arch Linux)** — add \`PKGBUILD\` pointing at the GitHub release tarball; list in \`packages/\`
- [ ] **Nix / nixpkgs** — upstream a \`pkgs/tools/openhuman/default.nix\` derivation; document local flake overlay as interim
## Tier 3 — Planned (no timeline)
- [ ] **Snap / Snapcraft** — \`snapcraft.yaml\`, publish to Snap Store
- [ ] **Flatpak** — \`org.tinyhumans.Openhuman.yaml\`, publish to Flathub
- [ ] **WinGet** — manifest in \`microsoft/winget-pkgs\` once Windows binary is stable
## Acceptance criteria
- [ ] Each official channel has a CI smoke test (install + \`openhuman --version\`)
- [ ] Install commands appear in \`docs/install.md\`
- [ ] Checksums shipped for all artifacts
`;
const body = [
'## Summary',
'',
'Track remaining package manager channels. Each tier reflects expected maintenance commitment from the core team.',
'',
'## Tier 1 — Official (core team maintains)',
'',
'- [ ] **npx / pnpm dlx** — zero-install via the npm package already published; document the one-liner: `npx openhuman@latest`',
'- [ ] **Scoop (Windows)** — needs a Windows binary (un-comment the Windows matrix in `release.yml` first); add a `tinyhumansai/scoop-openhuman` bucket',
'',
'## Tier 2 — Community-supported (PRs welcome, core team reviews)',
'',
'- [ ] **AUR (Arch Linux)** — add `PKGBUILD` pointing at the GitHub release tarball; list in `packages/`',
'- [ ] **Nix / nixpkgs** — upstream a `pkgs/tools/openhuman/default.nix` derivation; document local flake overlay as interim',
'',
'## Tier 3 — Planned (no timeline)',
'',
'- [ ] **Snap / Snapcraft** — `snapcraft.yaml`, publish to Snap Store',
'- [ ] **Flatpak** — `org.tinyhumans.Openhuman.yaml`, publish to Flathub',
'- [ ] **WinGet** — manifest in `microsoft/winget-pkgs` once Windows binary is stable',
'',
'## Acceptance criteria',
'',
'- [ ] Each official channel has a CI smoke test (install + `openhuman --version`)',
'- [ ] Install commands appear in `docs/install.md`',
'- [ ] Checksums shipped for all artifacts',
'',
].join('\n');
const issue = await github.rest.issues.create({
owner, repo,
title,
body,
labels: [label],
});
core.info(\`Created backlog issue: \${issue.data.html_url}\`);
core.info(`Created backlog issue: ${issue.data.html_url}`);