From 6e2527047ed60195f75c3f0dfef080c64bc98e9f Mon Sep 17 00:00:00 2001 From: Hector Alfaro Date: Fri, 29 Apr 2022 11:38:54 -0400 Subject: [PATCH] wait for api call --- .github/actions-scripts/content-changes-table-comment.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions-scripts/content-changes-table-comment.js b/.github/actions-scripts/content-changes-table-comment.js index 84040d36d3..addb6b1b98 100755 --- a/.github/actions-scripts/content-changes-table-comment.js +++ b/.github/actions-scripts/content-changes-table-comment.js @@ -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 = ''