ci: skip when no stories found
This commit is contained in:
parent
0df4bdc30b
commit
7c5ea74b34
|
@ -47,7 +47,11 @@ fs.readFile(
|
|||
Array.from(modules),
|
||||
main.stories.map((story) => path.resolve(__dirname, story))
|
||||
);
|
||||
if (stories.length) {
|
||||
for (const story of stories) {
|
||||
process.stdout.write(` --only-story-files ${story}`);
|
||||
}
|
||||
} else {
|
||||
process.stdout.write(` --only-changed-files __fake__`)
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue