Skip to content

armgit / Filee

Public Imported from GitHub
0

Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.

Name the Select-String parameters in the native workflow

KnifeLemonb86bebf95612
diff --git a/.github/workflows/windows-arm64-native.yml b/.github/workflows/windows-arm64-native.yml
index 64d7c826..ac85ee43 100644
--- a/.github/workflows/windows-arm64-native.yml
+++ b/.github/workflows/windows-arm64-native.yml
@@ -61,7 +61,7 @@ jobs:
# The file names build/fetch-engines.ps1 pins: rhwp in the layout of its release archives, Unhwp's library as is.
- name: Package
run: |
- $version = { param($name) (Select-String build/build-native.py "^$name = `"(.+)`"").Matches[0].Groups[1].Value }
+ $version = { param($name) (Select-String -Path build/build-native.py -Pattern "^$name = `"(.+)`"").Matches[0].Groups[1].Value }
$out = New-Item -ItemType Directory -Force (Join-Path $env:RUNNER_TEMP 'out')
$rhwp = Join-Path $out "rhwp-v$(& $version RHWP_VERSION)-windows-aarch64.zip"
$unhwp = Join-Path $out "unhwp-$(& $version UNHWP_VERSION)-win-arm64.dll"
@@ -72,7 +72,7 @@ jobs:
Copy-Item "$env:RUNNER_TEMP/native/unhwp/SOURCE.txt" (Join-Path $out 'unhwp-SOURCE.txt')
foreach ($file in $rhwp, $unhwp) {
$name = Split-Path $file -Leaf
- if (-not (Select-String build/fetch-engines.ps1 -SimpleMatch "/$name'")) {
+ if (-not (Select-String -Path build/fetch-engines.ps1 -SimpleMatch -Pattern "/$name'")) {
Write-Host "::error::build/fetch-engines.ps1 doesn't pin ${name}: update the url in `$arm64Pins."
exit 1
}