chore: check git status.
This commit is contained in:
1 parent
ea09368305
commit
fc5a4cb8a4
1 file changed
+15
@@ -124,6 +124,21 @@ Task("commit files")
|
|||||||
.Does(() =>
|
.Does(() =>
|
||||||
{
|
{
|
||||||
GitAddAll(gitRootPath);
|
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}.");
|
GitCommit(gitRootPath, username, email, $"chore: [AUTO] bump up version to {nugetVersion}.");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user