chore: tweak manifest-generator

This commit is contained in:
Afonso Jorge Ramos 2022-07-05 23:51:22 +01:00
parent 74fb34d1cf
commit 2f53e09a70
2 changed files with 2 additions and 4 deletions

View File

@ -1,5 +1,4 @@
#!/usr/bin/env zx
import 'zx/globals'
const output = (await $`ls -d */`).stdout.trim();
cd('.github');
@ -12,4 +11,4 @@ const final_manifest = await Promise.all(output.split('\n').map(async (dir) => {
cd('..');
await $`echo ${JSON.stringify(final_manifest, null, 2)} > manifest.json`;
await $`echo ${JSON.stringify(final_manifest, null, '\t')} > manifest.json`;

View File

@ -36,8 +36,7 @@ jobs:
cd('..')
await $`echo ${JSON.stringify(final_manifest, null, 2)} > manifest.json`
await $`tail -c +2 manifest.json > manifest.json.temp | mv manifest.json.temp manifest.json`
await $`echo ${JSON.stringify(final_manifest, null, '\t')} > manifest.json`
EOF
- name: push generated manifest