Skip to content

Commit 3c4897d

Browse files
committed
[F] dirty mark in CI
1 parent 81aac79 commit 3c4897d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

build.ps1

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,12 @@ try {
2828
$gitDescribe = "$gitDescribe-$branch"
2929
}
3030

31-
$isDirty = git status --porcelain
32-
if ($isDirty) {
33-
$gitDescribe = "$gitDescribe-DWR"
31+
# Skip dirty check in CI environment
32+
if (-not $env:CI -and -not $env:GITHUB_ACTIONS) {
33+
$isDirty = git status --porcelain
34+
if ($isDirty) {
35+
$gitDescribe = "$gitDescribe-DWR"
36+
}
3437
}
3538

3639
$buildDate = (Get-Date).ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ssZ")

0 commit comments

Comments
 (0)