Experimenting with github actions
This commit is contained in:
parent
a1246fed7a
commit
acb069b755
2 changed files with 4 additions and 2 deletions
4
.github/workflows/pull_request_check.yml
vendored
4
.github/workflows/pull_request_check.yml
vendored
|
@ -36,7 +36,9 @@ jobs:
|
||||||
- name: Set failure key
|
- name: Set failure key
|
||||||
run: |
|
run: |
|
||||||
if [[ -f "layer_report.txt" || -f "missing_licenses.txt" ]]; then
|
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
|
fi
|
||||||
|
|
||||||
- name: Test variable
|
- name: Test variable
|
||||||
|
|
|
@ -202,7 +202,7 @@ if (missingLicenses.length > 0) {
|
||||||
const msg = `There are ${missingLicenses.length} licenses missing.`
|
const msg = `There are ${missingLicenses.length} licenses missing.`
|
||||||
console.error(msg)
|
console.error(msg)
|
||||||
if (process.argv.indexOf("--report") >= 0) {
|
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) {
|
if (process.argv.indexOf("--no-fail") < 0) {
|
||||||
throw msg
|
throw msg
|
||||||
|
|
Loading…
Reference in a new issue