Dashboard › publish › Distillation
3216bb6c-b07e-4f86-a82b-9a8f76dd4e30["lore_tm_v1_LfHq_DUrNmhi2Lup32lR4IYlu8vAM88L3BFIOsSSWGk","lore_tm_v1_evzJQvRHSQ0abOz3vT5nQoVFl8Tah7BnPaMiUHwnw1M","lore_tm_v1_Bvq26GYz4orL3LSLH13kErM7ZtE2qHBTBG1_29oxlAM","lore_tm_v1_ub65CSe5FvidPkB4X_T61BLUTbCmqfxkVkDRjr2MwI8"]
Date: Sep 14, 2026
src/publish/post-result.js defines injectable main({ context = github.context, octokit = github.getOctokit(getGitHubToken()), report = processEndState, status = process.argv.slice(2)[0] } = {}). It initializes inputs = {}, parses process.env.PUBLISH_ARGS when present, warns Could not parse publish inputs; reporting without them on malformed JSON, and still calls await report({ context, octokit, inputs, status }). When run directly, rejection is logged and sets process.exitCode = 1; the module exports { main }.src/publish/update-issue.js defines a zero-argument main() that obtains github.context and an Octokit client via github.getOctokit(getGitHubToken()). inputs starts as undefined; if PUBLISH_ARGS exists it attempts JSON.parse(process.env.PUBLISH_ARGS), and malformed JSON emits Could not parse publish inputs; skipping target update but still invokes await updateIssue({ context, octokit, inputs }). When run directly, rejection is logged and sets process.exitCode = 1; the module exports { main }.src/publish/post-workflow-details.js is a direct entrypoint with no exported main() or local rejection handler: it creates context = github.context and octokit = github.getOctokit(getGitHubToken()), then immediately calls postWorkflowDetails({ context, octokit }).src/modules/post-workflow-details.js defines postWorkflowDetails({ context, octokit }), aliases context.repo to publishRepo, aliases context.runId to run_id, and reads issue_number from context.payload.issue.number. It calls octokit.rest.actions.getWorkflowRun({ ...publishRepo, run_id }), then returns octokit.rest.issues.createComment({ ...publishRepo, issue_number, body: \Publishing: run#${run_id}` })`; workflow-run lookup must succeed before the issue comment is posted.