mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 12:33:30 +01:00
ci: update glob path
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
name: 'Upload documentation'
|
name: 'Upload documentation'
|
||||||
description: 'Uploads the docs.json file to a planetscale database'
|
description: 'Uploads the docs.api.json file to a planetscale database'
|
||||||
inputs:
|
inputs:
|
||||||
package:
|
package:
|
||||||
description: 'The package string'
|
description: 'The package string'
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ const sql = connect({
|
|||||||
url: process.env.DATABASE_URL!,
|
url: process.env.DATABASE_URL!,
|
||||||
});
|
});
|
||||||
|
|
||||||
const globber = await create(`docs/${pkg}/docs/docs.api.json`);
|
const globber = await create(`docs/*/${pkg}/docs/docs.api.json`);
|
||||||
for await (const file of globber.globGenerator()) {
|
for await (const file of globber.globGenerator()) {
|
||||||
const data = await readFile(file, 'utf8');
|
const data = await readFile(file, 'utf8');
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user