Skip to content

Commit 2341aee

Browse files
committed
Fix workflow_dispatch for invalid workflows
1 parent d0b99c1 commit 2341aee

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/workflow/workflow.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
parseWorkflow,
77
WorkflowTemplate
88
} from "@github/actions-workflow-parser";
9+
import {ErrorPolicy} from "@github/actions-workflow-parser/model/convert";
910
import {basename} from "path";
1011
import {GitHubRepoContext} from "../git/repository";
1112

@@ -28,7 +29,7 @@ export async function getContextStringForWorkflow(workflowUri: vscode.Uri): Prom
2829
);
2930

3031
if (result.value) {
31-
const template = convertWorkflowTemplate(result.context, result.value);
32+
const template = convertWorkflowTemplate(result.context, result.value, ErrorPolicy.TryConversion);
3233

3334
const context: string[] = [];
3435

0 commit comments

Comments
 (0)