File tree Expand file tree Collapse file tree 4 files changed +12
-8
lines changed Expand file tree Collapse file tree 4 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,10 @@ function run() {
67
67
if ( ignoreFileOverride ) {
68
68
generateArgs . push ( '--ignore-file-override' , ignoreFileOverride ) ;
69
69
}
70
+ const templatesDir = core . getInput ( 'template' ) ;
71
+ if ( templatesDir ) {
72
+ generateArgs . push ( '--template' , templatesDir ) ;
73
+ }
70
74
const config = core . getInput ( 'config' ) ;
71
75
if ( config ) {
72
76
generateArgs . push ( '--config' , config ) ;
Original file line number Diff line number Diff line change 36
36
"prettier" : " ^2.1.2" ,
37
37
"tmp" : " ^0.2.1" ,
38
38
"ts-jest" : " ^26.4.1" ,
39
- "typescript" : " ^4.0.3 " ,
39
+ "typescript" : " ^4.5.5 " ,
40
40
"typescript-formatter" : " ^7.2.2"
41
41
}
42
- }
42
+ }
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ async function run(): Promise<void> {
36
36
}
37
37
const templatesDir = core . getInput ( 'template' ) ;
38
38
if ( templatesDir ) {
39
- generateArgs . push ( '--template' ) ;
39
+ generateArgs . push ( '--template' , templatesDir ) ;
40
40
}
41
41
const config = core . getInput ( 'config' ) ;
42
42
if ( config ) {
@@ -49,7 +49,7 @@ async function run(): Promise<void> {
49
49
50
50
await exec . exec ( openApiGenerator , generateArgs ) ;
51
51
52
- } catch ( error ) {
52
+ } catch ( error : any ) {
53
53
core . setFailed ( error . message ) ;
54
54
}
55
55
}
Original file line number Diff line number Diff line change @@ -3598,10 +3598,10 @@ typescript-formatter@^7.2.2:
3598
3598
commandpost "^1.0.0"
3599
3599
editorconfig "^0.15.0"
3600
3600
3601
- typescript@^4.0.3 :
3602
- version "4.2.4 "
3603
- resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.2.4 .tgz#8610b59747de028fda898a8aef0e103f156d0961 "
3604
- integrity sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg ==
3601
+ typescript@^4.5.5 :
3602
+ version "4.5.5 "
3603
+ resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.5 .tgz#d8c953832d28924a9e3d37c73d729c846c5896f3 "
3604
+ integrity sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA ==
3605
3605
3606
3606
union-value@^1.0.0 :
3607
3607
version "1.0.1"
You can’t perform that action at this time.
0 commit comments