Skip to content

Commit ecaeb8c

Browse files
committed
Test pullref.
1 parent c5e876b commit ecaeb8c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

buildSrc/src/main/groovy/com/google/firebase/gradle/plugins/measurement/MetricsReportUploader.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,14 @@ public static void upload(Project project, String report) {
3535

3636
String owner = System.getenv("REPO_OWNER");
3737
String repo = System.getenv("REPO_NAME");
38-
String branch = System.getenv("PULL_BASE_REF");
3938
String baseCommit = System.getenv("PULL_BASE_SHA");
4039
String headCommit = System.getenv("PULL_PULL_SHA");
40+
String baseRef = System.getenv("PULL_BASE_REF");
41+
String pullRef = System.getenv("PULL_REFS");
4142
String pullRequest = System.getenv("PULL_NUMBER");
4243

4344
String commit = headCommit != null && !headCommit.isEmpty() ? headCommit : baseCommit;
45+
String branch = pullRef != null && !pullRef.isEmpty() ? pullRef : baseRef;
4446

4547
post(project, report, owner, repo, commit, branch, baseCommit, pullRequest);
4648
}

0 commit comments

Comments
 (0)