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() {
6767 if ( ignoreFileOverride ) {
6868 generateArgs . push ( '--ignore-file-override' , ignoreFileOverride ) ;
6969 }
70+ const templatesDir = core . getInput ( 'template' ) ;
71+ if ( templatesDir ) {
72+ generateArgs . push ( '--template' , templatesDir ) ;
73+ }
7074 const config = core . getInput ( 'config' ) ;
7175 if ( config ) {
7276 generateArgs . push ( '--config' , config ) ;
Original file line number Diff line number Diff line change 3636 "prettier" : " ^2.1.2" ,
3737 "tmp" : " ^0.2.1" ,
3838 "ts-jest" : " ^26.4.1" ,
39- "typescript" : " ^4.0.3 " ,
39+ "typescript" : " ^4.5.5 " ,
4040 "typescript-formatter" : " ^7.2.2"
4141 }
42- }
42+ }
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ async function run(): Promise<void> {
3636 }
3737 const templatesDir = core . getInput ( 'template' ) ;
3838 if ( templatesDir ) {
39- generateArgs . push ( '--template' ) ;
39+ generateArgs . push ( '--template' , templatesDir ) ;
4040 }
4141 const config = core . getInput ( 'config' ) ;
4242 if ( config ) {
@@ -49,7 +49,7 @@ async function run(): Promise<void> {
4949
5050 await exec . exec ( openApiGenerator , generateArgs ) ;
5151
52- } catch ( error ) {
52+ } catch ( error : any ) {
5353 core . setFailed ( error . message ) ;
5454 }
5555}
Original file line number Diff line number Diff line change @@ -3598,10 +3598,10 @@ typescript-formatter@^7.2.2:
35983598 commandpost "^1.0.0"
35993599 editorconfig "^0.15.0"
36003600
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 ==
36053605
36063606union-value@^1.0.0 :
36073607 version "1.0.1"
You can’t perform that action at this time.
0 commit comments