File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -52,8 +52,9 @@ public function startTask(Task $task): void
52
52
if (getenv ('GITHUB_WORKFLOW ' )) {
53
53
$ this ->output ->writeln ("::group::task {$ task ->getName ()}" );
54
54
} else if (getenv ('GITLAB_CI ' )) {
55
+ $ sectionId = md5 ($ task ->getName ());
55
56
$ start = round ($ this ->startTime /1000 );
56
- $ this ->output ->writeln ("\e[0Ksection_start: {$ start }: {$ start }[collapsed=true] \r\e[0K {$ task ->getName ()}" );
57
+ $ this ->output ->writeln ("\e[0Ksection_start: {$ start }: {$ sectionId }[collapsed=true] \r\e[0K {$ task ->getName ()}" );
57
58
} else {
58
59
$ this ->output ->writeln ("<fg=cyan;options=bold>task</> {$ task ->getName ()}" );
59
60
}
@@ -78,9 +79,9 @@ public function endTask(Task $task, bool $error = false): void
78
79
if (getenv ('GITHUB_WORKFLOW ' )) {
79
80
$ this ->output ->writeln ("::endgroup:: " );
80
81
} else if (getenv ('GITLAB_CI ' )) {
82
+ $ sectionId = md5 ($ task ->getName ());
81
83
$ endTime = round ($ endTime /1000 );
82
- $ start = round ($ this ->startTime /1000 );
83
- $ this ->output ->writeln ("\e[0Ksection_end: {$ endTime }: {$ start }\r\e[0K " );
84
+ $ this ->output ->writeln ("\e[0Ksection_end: {$ endTime }: {$ sectionId }\r\e[0K " );
84
85
} else if ($ this ->output ->isVeryVerbose ()) {
85
86
$ this ->output ->writeln ("<fg=yellow;options=bold>done</> {$ task ->getName ()} $ taskTime " );
86
87
}
You can’t perform that action at this time.
0 commit comments