mirror of
https://github.com/renovatebot/renovate.git
synced 2025-05-12 15:41:58 +00:00
14 lines
409 B
JavaScript
14 lines
409 B
JavaScript
import { updateJsonFile } from './utils.mjs';
|
|
|
|
const dataUrl =
|
|
'https://raw.githubusercontent.com/nodejs/LTS/HEAD/schedule.json';
|
|
|
|
await (async () => {
|
|
console.log('Generating node schedule');
|
|
const res = await fetch(dataUrl);
|
|
if (!res.ok) {
|
|
console.error(`Failed to fetch ${dataUrl}`, res);
|
|
process.exit(1);
|
|
}
|
|
await updateJsonFile('./data/node-js-schedule.json', await res.text());
|
|
})();
|