Skip to content

Commit

Permalink
use PSExec
Browse files Browse the repository at this point in the history
Signed-off-by: midays <[email protected]>
  • Loading branch information
midays committed Dec 9, 2024
1 parent 2eabfe3 commit 7d8cc3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/windows-nightly-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ jobs:
$logPathErr = "C:\Users\nonadmin\Documents\actions-runner\work\run-tests-error.log"
# Run the test script as the nonadmin user
& $psExecPath -accepteula -u nonadmin -p "${{ secrets.NONADMIN_PASSWORD }}" -d powershell.exe `
-ExecutionPolicy Bypass -File $scriptPath > $logPathOut 2> $logPathErr
& $psExecPath -accepteula -u nonadmin -p "***" powershell.exe `
-ExecutionPolicy Bypass -File $scriptPath > $logPathOut 2> $logPathErr
# Output log files to GitHub Actions
Write-Output "--- Run Output ---"
Get-Content -Path $logPathOut
Expand Down

0 comments on commit 7d8cc3a

Please sign in to comment.