From bf76502c569d87dea4deec657825334e0418657e Mon Sep 17 00:00:00 2001 From: oberrich Date: Fri, 10 Jan 2025 06:53:22 +0100 Subject: [PATCH] chore: use nushell in ci --- .github/workflows/rust.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 02ff884..bedb0d3 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -51,9 +51,6 @@ jobs: - name: Use nushell if: matrix.os == 'windows-11-preview_aarch64' run: | - Set-ExecutionPolicy Bypass -Scope Process -Force - - function Log { param( [Parameter(Mandatory=$true)] [string]$Message, @@ -61,6 +58,8 @@ jobs: ) Write-Host "$(Get-Date -Format 'yyyy-MM-dd HH:mm:ss') [$Level] - $Message" } + + Set-ExecutionPolicy Bypass -Scope Process -Force $installs = @( # @{ Name = 'Chocolatey'; Action = { @@ -97,7 +96,7 @@ jobs: ) $exports | ForEach-Object { - $_ | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append + Add-Content -Path $env:GITHUB_PATH -Value $_ -Encoding utf8 Log -Message "Added $_ to GITHUB_PATH" }