diff --git a/.github/workflows/pull_request_check.yml b/.github/workflows/pull_request_check.yml index b145ed964..e48ad455c 100644 --- a/.github/workflows/pull_request_check.yml +++ b/.github/workflows/pull_request_check.yml @@ -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 diff --git a/scripts/generateLicenseInfo.ts b/scripts/generateLicenseInfo.ts index 409f75e16..87ac0b95e 100644 --- a/scripts/generateLicenseInfo.ts +++ b/scripts/generateLicenseInfo.ts @@ -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