Experimenting with GH Actions
This commit is contained in:
parent
ad53768ac7
commit
52bf5d73ce
3 changed files with 8 additions and 4 deletions
2
.github/workflows/pull_request_check.yml
vendored
2
.github/workflows/pull_request_check.yml
vendored
|
@ -35,7 +35,9 @@ jobs:
|
||||||
|
|
||||||
- name: Set failure key
|
- name: Set failure key
|
||||||
run: |
|
run: |
|
||||||
|
ls
|
||||||
if [[ -f "layer_report.txt" || -f "missing_licenses.txt" ]]; then
|
if [[ -f "layer_report.txt" || -f "missing_licenses.txt" ]]; then
|
||||||
|
echo "Found a report..."
|
||||||
echo "VALIDATION_FAILED=true" >> $GITHUB_ENV
|
echo "VALIDATION_FAILED=true" >> $GITHUB_ENV
|
||||||
else
|
else
|
||||||
echo "VALIDATION_FAILED=false" >> $GITHUB_ENV
|
echo "VALIDATION_FAILED=false" >> $GITHUB_ENV
|
||||||
|
|
|
@ -130,6 +130,7 @@ if (layerErrorCount.length + themeErrorCount.length == 0) {
|
||||||
const msg = (`Found ${layerErrorCount.length} errors in the layers; ${themeErrorCount.length} errors in the themes`)
|
const msg = (`Found ${layerErrorCount.length} errors in the layers; ${themeErrorCount.length} errors in the themes`)
|
||||||
console.log(msg)
|
console.log(msg)
|
||||||
if (process.argv.indexOf("--report") >= 0) {
|
if (process.argv.indexOf("--report") >= 0) {
|
||||||
|
console.log("Writing report!")
|
||||||
writeFileSync("layer_report.txt", errors)
|
writeFileSync("layer_report.txt", errors)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -202,6 +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) {
|
||||||
|
console.log("Writing report!")
|
||||||
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) {
|
||||||
|
|
Loading…
Reference in a new issue