Skip to content

Commit

Permalink
(fix) scripts/tag-and-release: Change ref to refs in Branch name
Browse files Browse the repository at this point in the history
The value for `BRANCH` env in `master` branch would be `refs/heads/master`.

Signed-off-by: Progyan Bhattacharya <[email protected]>
  • Loading branch information
Progyan-APAC authored Jun 21, 2021
1 parent 4c94ce5 commit 983898a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/tag-and-version
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const StableVersionRegex = /^[0-9]+\.[0-9]+\.[0-9]+$/;
* @returns True if the current branch is `master`, else False.
*/
function isMasterBranch() {
return process.env.BRANCH === "ref/heads/master";
return process.env.BRANCH === "refs/heads/master";
}

/**
Expand Down

0 comments on commit 983898a

Please sign in to comment.