Skip to content

Commit bbda66f

Browse files
committed
Upgrade parser
1 parent c130bb7 commit bbda66f

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@
315315
"@octokit/rest": "^18.0.0",
316316
"atob": "^2.1.2",
317317
"btoa": "^1.2.1",
318-
"github-actions-parser": "^0.8.6",
318+
"github-actions-parser": "^0.9.0",
319319
"js-yaml": "^3.14.0",
320320
"ssh-config": "^3.0.0",
321321
"tunnel": "0.0.6",

src/treeViews/workflows.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
import * as vscode from "vscode";
2-
import { getGitHubContext, GitHubContext } from "../git/repository";
2+
3+
import { GitHubContext, getGitHubContext } from "../git/repository";
34
import { Workflow, WorkflowJob, WorkflowRun, WorkflowStep } from "../model";
45
import { getWorkflowUri, usesRepositoryDispatch } from "../workflow/workflow";
6+
57
import { getIconForWorkflowRun } from "./icons";
8+
import { parse } from "github-actions-parser";
69

710
/**
811
* When no github.com remote can be found in the current workspace.
@@ -42,6 +45,8 @@ class WorkflowNode extends vscode.TreeItem {
4245
if (usesRepositoryDispatch(workflowUri.fsPath)) {
4346
this.contextValue += "rdispatch";
4447
}
48+
49+
const workflow = parse(filename, input, schema, contextProviderFactory);
4550
}
4651
}
4752

0 commit comments

Comments
 (0)