Skip to content

Commit b14930a

Browse files
committed
Fallback is never, but is rule is present without when default is 'on_success'
1 parent b2e2b0b commit b14930a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/job.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export class Job {
140140
process.stderr.write(`Rule output ${output}`);
141141
}
142142
}
143-
this.when = rule['when'] ? rule['when'] : this.when;
143+
this.when = rule['when'] ? rule['when'] : 'on_success';
144144
this.allowFailure = rule['allow_failure'] ? rule['allow_failure'] : this.allowFailure;
145145
break;
146146
} catch (e) {

0 commit comments

Comments
 (0)