Skip to content

Commit fc5a4cb

Browse files
committed
chore: check git status.
1 parent ea09368 commit fc5a4cb

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

build/build.cake

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,21 @@ Task("commit files")
124124
.Does(() =>
125125
{
126126
GitAddAll(gitRootPath);
127+
128+
var exitCode = StartProcess(
129+
"git",
130+
new ProcessSettings {
131+
Arguments = "diff --cached --quiet",
132+
WorkingDirectory = gitRootPath
133+
}
134+
);
135+
136+
if(exitCode == 0)
137+
{
138+
Information("no change.");
139+
return;
140+
}
141+
127142
GitCommit(gitRootPath, username, email, $"chore: [AUTO] bump up version to {nugetVersion}.");
128143
});
129144

0 commit comments

Comments
 (0)