feat(ui): send workflow output aliases
This commit is contained in:
parent
00039368f4
commit
e3e7159efa
2 changed files with 11 additions and 1 deletions
2
pkg/api/ui/dist/core-build.js
vendored
2
pkg/api/ui/dist/core-build.js
vendored
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue