Experimenting with GH Actions

This commit is contained in:
Pieter Vander Vennet 2021-04-11 03:17:59 +02:00
parent ad53768ac7
commit 52bf5d73ce
3 changed files with 8 additions and 4 deletions

View file

@ -202,7 +202,8 @@ if (missingLicenses.length > 0) {
const msg = `There are ${missingLicenses.length} licenses missing.`
console.error(msg)
if (process.argv.indexOf("--report") >= 0) {
writeFileSync("missing_licenses.txt", missingLicenses.join("\n"))
console.log("Writing report!")
writeFileSync("missing_licenses.txt", missingLicenses.join("\n"))
}
if (process.argv.indexOf("--no-fail") < 0) {
throw msg