File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 27
27
28
28
- run : npm run markdownlint
29
29
30
+ - uses : ./
31
+ if : success() || failure()
32
+ with :
33
+ action : remove
34
+
30
35
build :
31
36
runs-on : ubuntu-latest
32
37
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { promisify } from "util";
5
5
import { getInput , setFailed } from "@actions/core" ;
6
6
import { issueCommand } from "@actions/core/lib/command"
7
7
8
- import { ProblemMatcher } from "github-actions-problem-matcher-typings" ;
8
+ import { ProblemMatcherDocument } from "github-actions-problem-matcher-typings" ;
9
9
10
10
const readFileAsync = promisify ( readFile ) ;
11
11
@@ -26,7 +26,8 @@ export async function run(): Promise<void> {
26
26
27
27
case "remove" :
28
28
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 ] ;
30
31
31
32
issueCommand (
32
33
"remove-matcher" ,
You can’t perform that action at this time.
0 commit comments