Experimenting with github actions

This commit is contained in:
pietervdvn 2021-04-11 02:57:34 +02:00
parent a1246fed7a
commit acb069b755
2 changed files with 4 additions and 2 deletions

View file

@ -36,7 +36,9 @@ jobs:
- name: Set failure key
run: |
if [[ -f "layer_report.txt" || -f "missing_licenses.txt" ]]; then
echo "VALIDATION_FAILED=true" >>$GITHUB_ENV
echo "VALIDATION_FAILED=true" >> $GITHUB_ENV
else
echo "VALIDATION_FAILED=false" >> $GITHUB_ENV
fi
- name: Test variable

View file

@ -202,7 +202,7 @@ 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"))
writeFileSync("missing_licenses.txt", missingLicenses.join("\n"))
}
if (process.argv.indexOf("--no-fail") < 0) {
throw msg