fix(updateScript): properly filter inputs
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
7391427c29
commit
5695e32c4f
1 changed files with 7 additions and 7 deletions
|
@ -17,19 +17,19 @@ export const updateFlakeInputs = () => {
|
||||||
.toString()
|
.toString()
|
||||||
// Add an extra blank line between inputs
|
// Add an extra blank line between inputs
|
||||||
.split('\n•')
|
.split('\n•')
|
||||||
.join('\n\n•')
|
|
||||||
// Shorten git revs to help readability
|
|
||||||
.split('\n')
|
|
||||||
.map((l) => l
|
|
||||||
.replace(/.{33}\?narHash=sha256[^']*/, '')
|
|
||||||
.replace(/&rev=(.{7})[^'&]*/, (_, backref) => `&rev=${backref}`))
|
|
||||||
.filter((input) => ![
|
.filter((input) => ![
|
||||||
'systems',
|
'systems',
|
||||||
'flake-utils',
|
'flake-utils',
|
||||||
'flake-parts',
|
'flake-parts',
|
||||||
'treefmt-nix',
|
'treefmt-nix',
|
||||||
'lib-aggregate',
|
'lib-aggregate',
|
||||||
].some((inputName) => input.startsWith(`• Updated input '${inputName}'`)))
|
].some((inputName) => input.startsWith(` Updated input '${inputName}'`)))
|
||||||
|
.join('\n\n•')
|
||||||
|
// Shorten git revs to help readability
|
||||||
|
.split('\n')
|
||||||
|
.map((l) => l
|
||||||
|
.replace(/.{33}\?narHash=sha256[^']*/, '')
|
||||||
|
.replace(/&rev=(.{7})[^'&]*/, (_, backref) => `&rev=${backref}`))
|
||||||
.join('\n');
|
.join('\n');
|
||||||
|
|
||||||
return output;
|
return output;
|
||||||
|
|
Loading…
Reference in a new issue