From d875cb6312763ebece61a1a9733709cc297b33dd Mon Sep 17 00:00:00 2001 From: Andrew Luca Date: Sun, 19 Jan 2020 15:59:08 +0200 Subject: [PATCH] fix: await branch name in validate action --- scripts/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/utils.js b/scripts/utils.js index 2aa9131a..44207c54 100644 --- a/scripts/utils.js +++ b/scripts/utils.js @@ -24,7 +24,7 @@ async function getCurrentBranchName() { /** on master branch will return an empty array */ export async function getMasterData() { const options = { silent: true }; - const curentBranchName = getCurrentBranchName(); + const curentBranchName = await getCurrentBranchName(); // when on a branch/PR different from master // will populate scripts/masterData.js with src/data.js from master if (curentBranchName !== 'master') {