File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 11
11
"lint" : " tslint --project ." ,
12
12
"lint-fix" : " tslint --fix --project ." ,
13
13
"ncu" : " ncu --semverLevel major -e 2" ,
14
- "test-yml-spec" : " node -r source-map-support/register dist/index.js manual_job_invoked_from_cli --cwd tests/test-yml-spec"
14
+ "test-yml-spec" : " node -r source-map-support/register dist/index.js -m manual_job_invoked_from_cli --cwd tests/test-yml-spec"
15
15
},
16
16
"bin" : " dist/index.js" ,
17
17
"dependencies" : {
Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ process.env.CI_PIPELINE_ID = makeid(10);
46
46
47
47
const argv = yargs . argv ;
48
48
const cwd = argv . cwd || process . cwd ( ) ;
49
+ const m : any = argv . m ;
50
+ const manualArgs : string [ ] = [ ] . concat ( m || [ ] ) ;
49
51
50
52
const parser = new Parser ( cwd , logger ) ;
51
53
@@ -64,7 +66,7 @@ const runJobs = async () => {
64
66
const jobNames = `${ jobs . map ( ( j ) => j . name ) . join ( " " ) } ` ;
65
67
console . log ( `=> ${ c . yellow ( `${ stageName } ` ) } > ${ c . blueBright ( `${ jobNames } ` ) } ${ c . magentaBright ( "starting" ) } ...` ) ;
66
68
for ( const job of jobs ) {
67
- if ( job . isManual ( ) && ! argv . _ . includes ( job . name ) ) {
69
+ if ( job . isManual ( ) && ! manualArgs . includes ( job . name ) ) {
68
70
console . log ( `${ c . blueBright ( `${ job . name } ` ) } skipped. Manual job` ) ;
69
71
continue ;
70
72
}
You can’t perform that action at this time.
0 commit comments