We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81aac79 commit 3c4897dCopy full SHA for 3c4897d
build.ps1
@@ -28,9 +28,12 @@ try {
28
$gitDescribe = "$gitDescribe-$branch"
29
}
30
31
- $isDirty = git status --porcelain
32
- if ($isDirty) {
33
- $gitDescribe = "$gitDescribe-DWR"
+ # Skip dirty check in CI environment
+ if (-not $env:CI -and -not $env:GITHUB_ACTIONS) {
+ $isDirty = git status --porcelain
34
+ if ($isDirty) {
35
+ $gitDescribe = "$gitDescribe-DWR"
36
+ }
37
38
39
$buildDate = (Get-Date).ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ssZ")
0 commit comments