Skip to content

Commit

Permalink
fix(build): ignore GITHUB_REF in mdn/yari (#11398)
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner authored Jul 12, 2024
1 parent af33c55 commit 21d7dc1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ function getCurrentGitBranch(root: string) {
// Only bother getting fancy if the root is CONTENT_ROOT.
// For other possible roots, just leave it to the default.
if (root === CONTENT_ROOT) {
if (process.env.GITHUB_REF) {
if (
process.env.GITHUB_REF &&
process.env.GITHUB_REPOSITORY !== "mdn/yari"
) {
name = process.env.GITHUB_REF.split("/").slice(2).join("/");
} else {
// Most probably, you're hacking on the content, using Yari to preview,
Expand Down

0 comments on commit 21d7dc1

Please sign in to comment.