Files
nixpkgs/ci/github-script/supportedSystems.js
Michael Daniels eb501c45ae ci/github-script: convert to ES modules
ES modules work better with TypeScript than CommonJS modules do.

Assisted-by: GPT 5.6 Luna & Terra (Codex)
2026-08-31 18:09:18 -04:00

12 lines
336 B
JavaScript

// @ts-nocheck
export default async ({ github, context, targetSha }) => {
const { content, encoding } = (
await github.rest.repos.getContent({
...context.repo,
path: 'pkgs/top-level/release-supported-systems.json',
ref: targetSha,
})
).data
return JSON.parse(Buffer.from(content, encoding).toString())
}