ci: skip when no stories found

This commit is contained in:
Acid Chicken (硫酸鶏) 2023-04-06 23:47:42 +09:00
parent 0df4bdc30b
commit 7c5ea74b34
No known key found for this signature in database
GPG key ID: 3E87B98A3F6BAB99

View file

@ -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__`)
}
});