mirror of
https://github.com/morpheusthewhite/spicetify-themes.git
synced 2024-11-22 02:42:54 +01:00
chore: tweak manifest-generator
This commit is contained in:
parent
74fb34d1cf
commit
2f53e09a70
3
.github/manifest_generator.mjs
vendored
3
.github/manifest_generator.mjs
vendored
@ -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`;
|
||||
|
3
.github/workflows/manifest-generator.yml
vendored
3
.github/workflows/manifest-generator.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user