fix: await branch name in validate action

This commit is contained in:
Andrew Luca 2020-01-19 15:59:08 +02:00
parent 5733caa1a1
commit d875cb6312
No known key found for this signature in database
GPG key ID: 8CEE7E0149460DB9

View file

@ -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') {