ci: trim auto-generated files
This commit is contained in:
2
.github/scripts/build.mjs
vendored
2
.github/scripts/build.mjs
vendored
@@ -114,7 +114,7 @@ async function update({source, output, context = {}, options = {}}) {
|
|||||||
const {plugins, templates, packaged, descriptor} = await metadata({log: false})
|
const {plugins, templates, packaged, descriptor} = await metadata({log: false})
|
||||||
const content = await ejs.renderFile(source, {plugins, templates, packaged, descriptor, ...context}, {async: true, ...options})
|
const content = await ejs.renderFile(source, {plugins, templates, packaged, descriptor, ...context}, {async: true, ...options})
|
||||||
const file = paths.join(__metrics, output)
|
const file = paths.join(__metrics, output)
|
||||||
await fs.writeFile(file, content)
|
await fs.writeFile(file, content.replace(/^[ ]+$/gm, ""))
|
||||||
staged.add(file)
|
staged.add(file)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user