mirror of
https://github.com/BradNut/awesome-uses
synced 2025-09-08 17:40:31 +00:00
fix: await branch name in validate action
This commit is contained in:
parent
5733caa1a1
commit
d875cb6312
1 changed files with 1 additions and 1 deletions
|
|
@ -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') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue