mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 14:36:25 +00:00
15 lines
417 B
TypeScript
15 lines
417 B
TypeScript
import shell from 'shelljs';
|
|
|
|
shell.exec('yarn create-json-schema');
|
|
|
|
const res = shell.exec('git status --porcelain', { silent: true });
|
|
|
|
if (res.code === 0 && !res.includes('renovate-schema.json')) {
|
|
shell.echo('PASS: renovate-schema.json is up to date');
|
|
shell.exit(0);
|
|
} else {
|
|
shell.echo(
|
|
"ERROR: renovate-schema.json needs updating. Run 'yarn create-json-schema' and commit."
|
|
);
|
|
shell.exit(-1);
|
|
}
|