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 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
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { promisify } from "util";
55import { getInput , setFailed } from "@actions/core" ;
66import { 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
1010const 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" ,
You can’t perform that action at this time.
0 commit comments