Skip to content

Commit 900fef9

Browse files
Added workaround for e2e tests
1 parent db859a3 commit 900fef9

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/main/java/io/micrometer/release/Main.java

+10-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ void run() {
9494

9595
private boolean isTrainRelease(String githubOrgRepo, String contextPropVersions, String micrometerVersions,
9696
String tracingVersions, String docsGenVersions) {
97-
return switch (githubOrgRepo) {
97+
String modifiedGhOrgRepo = modifyForE2eTests(githubOrgRepo);
98+
return switch (modifiedGhOrgRepo) {
9899
case "micrometer-metrics/context-propagation" -> hasText(contextPropVersions);
99100
case "micrometer-metrics/micrometer" -> hasText(micrometerVersions);
100101
case "micrometer-metrics/tracing" -> hasText(tracingVersions);
@@ -103,6 +104,14 @@ private boolean isTrainRelease(String githubOrgRepo, String contextPropVersions,
103104
};
104105
}
105106

107+
// This is used for e2e tests
108+
private String modifyForE2eTests(String githubOrgRepo) {
109+
if ("marcingrzejszczak/gh-actions-test".equalsIgnoreCase(githubOrgRepo)) {
110+
return "micrometer-metrics/tracing";
111+
}
112+
return githubOrgRepo;
113+
}
114+
106115
private boolean hasText(String text) {
107116
return text != null && !text.isBlank();
108117
}

0 commit comments

Comments
 (0)