1
0
mirror of synced 2025-12-30 03:01:36 -05:00

wait for api call

This commit is contained in:
Hector Alfaro
2022-04-29 11:38:54 -04:00
parent c84427d3e4
commit 6e2527047e

View File

@@ -44,7 +44,7 @@ for (const file of articleFiles) {
// get the file contents and decode them
// this script is called from the main branch, so we need the API call to get the contents from the branch, instead
const fileContents = getContents(
const fileContents = await getContents(
context.repo.owner,
context.payload.repository.name,
context.payload.pull_request.head.ref,
@@ -52,7 +52,7 @@ for (const file of articleFiles) {
)
// parse the frontmatter
const { data } = await parse(fileContents)
const { data } = parse(fileContents)
let contentCell = ''
let previewCell = ''