Skip to content

Commit

Permalink
Merge branch 'master' into releases/v1
Browse files Browse the repository at this point in the history
  • Loading branch information
xt0rted committed Feb 18, 2020
2 parents f0fc137 + 0dfb93a commit 24a0a6d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@types/jest": "^25.1.2",
"@types/node": "^13.7.1",
"@zeit/ncc": "^0.21.1",
"github-actions-problem-matcher-typings": "^1.0.0",
"github-actions-problem-matcher-typings": "^1.1.0",
"jest": "^25.1.0",
"jest-circus": "^25.1.0",
"ts-jest": "^25.2.0",
Expand Down
5 changes: 3 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { promisify } from "util";
import { getInput, setFailed } from "@actions/core";
import { issueCommand } from "@actions/core/lib/command"

import { ProblemMatcher } from "github-actions-problem-matcher-typings";
import { ProblemMatcherDocument } from "github-actions-problem-matcher-typings";

const readFileAsync = promisify(readFile);

Expand All @@ -26,7 +26,8 @@ export async function run(): Promise<void> {

case "remove":
const fileContents = await readFileAsync(matcherFile, { encoding: "utf8" });
const problemMatcher: ProblemMatcher = JSON.parse(fileContents);
const problemMatcherDocument: ProblemMatcherDocument = JSON.parse(fileContents);
const problemMatcher = problemMatcherDocument.problemMatcher[0];

issueCommand(
"remove-matcher",
Expand Down

0 comments on commit 24a0a6d

Please sign in to comment.