We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6d5270 commit e5e2569Copy full SHA for e5e2569
1 file changed
build/build.ps1
@@ -243,5 +243,9 @@ Write-Host "Zip structure: dbatools.library.zip contains 'dbatools.library' fold
243
Write-Host "For testing: Extract to a folder in `$env:PSModulePath or use Install-DbatoolsLibrary.ps1"
244
Write-Host "Build completed successfully. Files organized and temporary artifacts cleaned up."
245
246
-Write-Warning $LASTEXITCODE
247
-$LASTEXITCODE = 0
+# if github actions and lastexitcode =0 then exit with success
+if ($env:GITHUB_ACTIONS -and $LASTEXITCODE -eq 0) {
248
+ exit 0
249
+} else {
250
+ exit $LASTEXITCODE
251
+}
0 commit comments