Skip to content

Commit 443dd19

Browse files
committed
Removed the id from github actions CI step and job values/links and improved code grouping
1 parent 13f9f80 commit 443dd19

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/com/gradle/CustomBuildScanEnhancements.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,12 +304,12 @@ public void execute(BuildResultAdapter buildResult) {
304304
addCustomValueAndSearchLink(develocity, "CI workflow", value));
305305
envVariable("GITHUB_RUN_ID", providers).ifPresent(value ->
306306
addCustomValueAndSearchLink(develocity, "CI run", value));
307-
envVariable("GITHUB_HEAD_REF", providers).filter(value -> !value.isEmpty()).ifPresent(value ->
308-
buildScan.value("PR branch", value));
309307
envVariable("GITHUB_ACTION", providers).ifPresent(value ->
310-
addCustomValueAndSearchLink(develocity, "CI step id", value));
308+
addCustomValueAndSearchLink(develocity, "CI step", value));
311309
envVariable("GITHUB_JOB", providers).ifPresent(value ->
312-
addCustomValueAndSearchLink(develocity, "CI job id", value));
310+
addCustomValueAndSearchLink(develocity, "CI job", value));
311+
envVariable("GITHUB_HEAD_REF", providers).filter(value -> !value.isEmpty()).ifPresent(value ->
312+
buildScan.value("PR branch", value));
313313
}
314314

315315
if (isGitLab(providers)) {

0 commit comments

Comments
 (0)