feat(ui): send workflow output aliases

This commit is contained in:
Virgil 2026-04-02 00:22:20 +00:00
parent 00039368f4
commit e3e7159efa
2 changed files with 11 additions and 1 deletions

View file

@ -1253,7 +1253,7 @@ let g = class extends k {
this.generatingWorkflow = !0, this.error = "", this.workflowSuccess = "";
try {
const s = {}, e = this.workflowPath.trim(), t = this.workflowOutputPath.trim();
e && (s.path = e), t && (s.outputPath = t);
e && (s.path = e), t && (s.outputPath = t), t && (s.output_path = t, s.output = t, s.workflowOutputPath = t, s.workflow_output_path = t);
const i = (await this.api.releaseWorkflow(s)).path ?? t ?? e ?? ".github/workflows/release.yml";
this.workflowSuccess = `Workflow generated at ${i}`;
} catch (s) {

View file

@ -320,11 +320,21 @@ export class BuildRelease extends LitElement {
const request: {
path?: string;
outputPath?: string;
output_path?: string;
output?: string;
workflowOutputPath?: string;
workflow_output_path?: string;
} = {};
const path = this.workflowPath.trim();
const outputPath = this.workflowOutputPath.trim();
if (path) request.path = path;
if (outputPath) request.outputPath = outputPath;
if (outputPath) {
request.output_path = outputPath;
request.output = outputPath;
request.workflowOutputPath = outputPath;
request.workflow_output_path = outputPath;
}
const result = await this.api.releaseWorkflow(request);
const generatedPath = result.path ?? outputPath ?? path ?? '.github/workflows/release.yml';