From cf601cb1a88fc03d62baf44421865c61509a225b Mon Sep 17 00:00:00 2001 From: hmqgg Date: Sun, 26 Nov 2023 01:35:42 +0800 Subject: [PATCH] fix(build): pwsh env --- .github/workflows/create_release.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index 5f1113d..5914397 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -34,8 +34,7 @@ jobs: - name: Minify JSON files id: minify-json shell: pwsh - run: | - "${{PACKAGE_CONTENT}}" -Split "\s+" | Where-Object { $_ -Like "*.json" } | % { Get-Content $_ | Out-String | ConvertFrom-Json | ConvertTo-Json -Compress | Tee-Object $_ } + run: $env:PACKAGE_CONTENT -Split "\s+" | Where-Object { $_ -Like "*.json" } | % { Get-Content $_ | Out-String | ConvertFrom-Json | ConvertTo-Json -Compress | Tee-Object $_ } # Create a zip file with all files required by the module to add to the release - name: Create Artifact