Skip to content

Commit 0c5abcd

Browse files
Merge pull request #360 from Catel/GitHubSync/20251217-114440
GitHubSync update
2 parents 2e363a9 + d20f833 commit 0c5abcd

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

deployment/cake/generic-variables.cake

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ public class VersionContext : BuildContextBase
9595

9696
CakeContext.Information("Mutex acquired");
9797

98+
CakeContext.Information("[{0}] Preparing GitVersion", GetTime());
99+
98100
var gitDirectory = ".git";
99101
if (!CakeContext.DirectoryExists(gitDirectory))
100102
{
@@ -234,10 +236,12 @@ public class VersionContext : BuildContextBase
234236

235237
gitVersionSettings.WorkingDirectory = dynamicRepositoryPath;
236238
}
237-
238-
CakeContext.Information("Running GitVersion");
239+
240+
CakeContext.Information("[{0}] Running GitVersion", GetTime());
239241

240242
_gitVersionContext = CakeContext.GitVersion(gitVersionSettings);
243+
244+
CakeContext.Information("[{0}] Finished GitVersion", GetTime());
241245
}
242246
}
243247

deployment/cake/lib-generic.cake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,13 @@ public enum TargetType
207207

208208
//-------------------------------------------------------------
209209

210+
private static string GetTime()
211+
{
212+
return DateTime.Now.ToString("HH:mm:ss.fff");
213+
}
214+
215+
//-------------------------------------------------------------
216+
210217
private static void LogSeparator(this ICakeContext cakeContext, string messageFormat, params object[] args)
211218
{
212219
cakeContext.Information("");

0 commit comments

Comments
 (0)