ci: update glob path

This commit is contained in:
iCrawl
2023-04-11 18:11:40 +02:00
parent 6a221a9676
commit 1c5a6fa552
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
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:
package:
description: 'The package string'

View File

@@ -17,7 +17,7 @@ const sql = connect({
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()) {
const data = await readFile(file, 'utf8');
try {