File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 1313$projectPath = $args [0 ]
1414$projectName = Split-Path - Path $projectPath - Leaf
1515$testsFolderPath = Join-Path - Path $projectPath - ChildPath " ../tests"
16+ $global :exitCode = 0
1617
1718$commandToExecute = $args [1 ]
1819
@@ -23,4 +24,7 @@ Get-ChildItem -Path $testsFolderPath -Directory -Recurse `
2324 $testsProjectPath = Join-Path - Path $testsFolderPath - ChildPath $testsProjectName
2425 Write-Output " Tests project found: $testsProjectPath . Executing a command: $commandToExecute "
2526 bash - c " PROJECT_PATH=$testsProjectPath && $commandToExecute "
27+ if ($LASTEXITCODE -ne 0 ) {
28+ $global :exitCode = $LASTEXITCODE
29+ }
2630}
Original file line number Diff line number Diff line change 5555 path : " ./src/UnturnedRedistUpdateTool/bin/Release/net9.0/linux-x64/UnturnedRedistUpdateTool/UnturnedRedistUpdateTool.zip"
5656 if-no-files-found : error
5757
58- - name : Upload UnturnedRedistUpdateTool
59- uses : actions/upload-artifact@v4
60- with :
61- name : UnturnedRedistUpdateTool.zip
62- path : " ./src/UnturnedRedistUpdateTool/bin/Release/net9.0/linux-x64/UnturnedRedistUpdateTool/UnturnedRedistUpdateTool.zip"
63- if-no-files-found : error
64-
6558 - name : Create Release
6659 if : github.event_name == 'create' && github.event.ref_type == 'tag'
6760 uses : ncipollo/release-action@v1
You can’t perform that action at this time.
0 commit comments