chore: check git status.

This commit is contained in:
NaBian committed 2025-05-20 22:10:45 +08:00
1 parent ea09368305
commit fc5a4cb8a4
1 file changed
+15
+15
View File
@@ -124,6 +124,21 @@ Task("commit files")
.Does(() =>
{
GitAddAll(gitRootPath);
var exitCode = StartProcess(
"git",
new ProcessSettings {
Arguments = "diff --cached --quiet",
WorkingDirectory = gitRootPath
}
);
if(exitCode == 0)
{
Information("no change.");
return;
}
GitCommit(gitRootPath, username, email, $"chore: [AUTO] bump up version to {nugetVersion}.");
});