Skip to content

Commit 5b79ac8

Browse files
authored
Merge pull request #409 from gradle/gk/expandGhaValues
Added setting CI Action and CI job id custom values on github action builds
2 parents aa170f2 + 443dd19 commit 5b79ac8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,8 +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_ACTION", providers).ifPresent(value ->
308+
addCustomValueAndSearchLink(develocity, "CI step", value));
309+
envVariable("GITHUB_JOB", providers).ifPresent(value ->
310+
addCustomValueAndSearchLink(develocity, "CI job", value));
307311
envVariable("GITHUB_HEAD_REF", providers).filter(value -> !value.isEmpty()).ifPresent(value ->
308-
buildScan.value("PR branch", value));
312+
buildScan.value("PR branch", value));
309313
}
310314

311315
if (isGitLab(providers)) {

0 commit comments

Comments
 (0)