Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
fixed some typos
Browse files Browse the repository at this point in the history
move last job receive to the very end after file lock is gone
  • Loading branch information
StephenHodgson committed Nov 2, 2022
1 parent 9ec0d91 commit b880f10
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ runs:
# Unity Action
$editorPath = "${{ inputs.editor-path }}"
$projectPath = "${{ inputs.project-path }}"
$bulidTarget = "${{ inputs.build-target }}"
$buildTarget = "${{ inputs.build-target }}"
$additionalArgs = "${{ inputs.args }}".Trim()
$name = "${{ inputs.name }}"
$buildTargetArgs = ""
if ( -not [string]::IsNullOrEmpty($bulidTarget) ) {
$buildTargetArgs = "-buildTarget `"$bulidTarget`" "
if ( -not [string]::IsNullOrEmpty($buildTarget) ) {
$buildTargetArgs = "-buildTarget `"$buildTarget`" "
}
$logDirectory = "$projectPath/Builds/Logs"
Expand Down Expand Up @@ -114,16 +114,13 @@ runs:
$orphaned = $procsWithParent | Where-Object -Property ParentProcessId -NotIn $procsWithParent.ProcessId
$procs = Get-Process -IncludeUserName | Where-Object -Property Id -In $orphaned.ProcessId | Where-Object { $_.UserName -match $env:username }
$procs | ForEach-Object { Stop-Process -Id $_.Id -ErrorAction SilentlyContinue }
} else {
}
}
Write-Host "End of log stream"
Start-Sleep -Milliseconds 1
Receive-Job $ljob
} while ( $fileLocked )
Write-Host "End of log stream"
Write-Host "Cleaning up jobs..."
# Clean up job
Expand Down

0 comments on commit b880f10

Please sign in to comment.