File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ export class Commander {
223
223
224
224
const renderLine = ( job : Job ) => {
225
225
const needs = job . needs ?. filter ( n => ! n . project && ! n . pipeline ) . map ( n => n . job ) ;
226
- const allowFailure = job . allowFailure ? "true " : "false" ;
226
+ const allowFailure = job . allowFailure ? "true " : "false " ;
227
227
let jobLine = chalk `{blueBright ${ job . name . padEnd ( jobNamePad ) } } ${ job . description . padEnd ( descriptionPadEnd ) } ` ;
228
228
jobLine += chalk `{yellow ${ job . stage . padEnd ( stagePadEnd ) } } ${ job . when . padEnd ( whenPadEnd ) } ${ allowFailure . padEnd ( 11 ) } ` ;
229
229
if ( needs ) {
@@ -268,7 +268,7 @@ export class Commander {
268
268
writeStreams . stdout ( "name;description;stage;when;allowFailure;needs\n" ) ;
269
269
jobs . forEach ( ( job ) => {
270
270
const needs = job . needs ?. filter ( n => ! n . project && ! n . pipeline ) . map ( n => n . job ) . join ( "," ) ?? [ ] ;
271
- writeStreams . stdout ( `${ job . name } ;"${ job . description } ";${ job . stage } ;${ job . when } ;${ job . allowFailure } ;[${ needs } ]\n` ) ;
271
+ writeStreams . stdout ( `${ job . name } ;"${ job . description } ";${ job . stage } ;${ job . when } ;${ job . allowFailure ? "true" : "false" } ;[${ needs } ]\n` ) ;
272
272
} ) ;
273
273
}
274
274
Original file line number Diff line number Diff line change @@ -251,10 +251,10 @@ export class Parser {
251
251
let index = 0 ;
252
252
if ( expandVariables ) {
253
253
for ( const line of fileSplit ) {
254
- interactiveMatch = ! interactiveMatch ? / # \s ? @ \s ? [ I i ] n t e r a c t i v e / . exec ( line ) : interactiveMatch ;
255
- injectSSHAgent = ! injectSSHAgent ? / # \s ? @ \s ? [ I i ] n j e c t S S H A g e n t / . exec ( line ) : injectSSHAgent ;
256
- noArtifactsToSourceMatch = ! noArtifactsToSourceMatch ? / # \s ? @ \s ? N o A r t i f a c t s T o S o u r c e / i. exec ( line ) : noArtifactsToSourceMatch ;
257
- descriptionMatch = ! descriptionMatch ? / # \s ? @ \s ? [ D d ] e s c r i p t i o n (?< description > .* ) / . exec ( line ) : descriptionMatch ;
254
+ interactiveMatch = interactiveMatch ?? / # \s ? @ \s ? [ I i ] n t e r a c t i v e / . exec ( line ) ;
255
+ injectSSHAgent = injectSSHAgent ?? / # \s ? @ \s ? [ I i ] n j e c t S S H A g e n t / . exec ( line ) ;
256
+ noArtifactsToSourceMatch = noArtifactsToSourceMatch ?? / # \s ? @ \s ? N o A r t i f a c t s T o S o u r c e / i. exec ( line ) ;
257
+ descriptionMatch = descriptionMatch ?? / # \s ? @ \s ? [ D d ] e s c r i p t i o n (?< description > .* ) / . exec ( line ) ;
258
258
259
259
const jobMatch = / \w : / . exec ( line ) ;
260
260
if ( jobMatch && ( interactiveMatch || descriptionMatch || injectSSHAgent || noArtifactsToSourceMatch ) ) {
You can’t perform that action at this time.
0 commit comments