Skip to content

Commit 31939ff

Browse files
authored
Merge pull request #2 from xt0rted/remove-name-fix
Fix problem matcher name retrieval
2 parents c493662 + 403afa3 commit 31939ff

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ jobs:
2727

2828
- run: npm run markdownlint
2929

30+
- uses: ./
31+
if: success() || failure()
32+
with:
33+
action: remove
34+
3035
build:
3136
runs-on: ubuntu-latest
3237

src/main.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { promisify } from "util";
55
import { getInput, setFailed } from "@actions/core";
66
import { issueCommand } from "@actions/core/lib/command"
77

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

1010
const readFileAsync = promisify(readFile);
1111

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

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

3132
issueCommand(
3233
"remove-matcher",

0 commit comments

Comments
 (0)