Skip to content

Commit

Permalink
run linux as admin
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusStorhaug committed Mar 30, 2024
1 parent ab6c5fc commit 4668578
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@ runs:
# Test-PSModule
$IsUnix = $PSVersionTable.Platform -eq 'Unix'
if ($IsUnix) {
sudo pwsh "$env:GITHUB_ACTION_PATH\scripts\main.ps1"
$passed = sudo pwsh "$env:GITHUB_ACTION_PATH\scripts\main.ps1"
} else {
$passed = . "$env:GITHUB_ACTION_PATH\scripts\main.ps1" -Verbose
"passed=$passed" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
}
"passed=$passed" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
if (-not $passed) {
exit 1
}
Expand Down

0 comments on commit 4668578

Please sign in to comment.