ci(workflows): 在Windows环境中添加jq到PATH
确保在Windows构建环境中能够使用jq工具,以便后续步骤可以正常执行
This commit is contained in:
parent
8937024241
commit
77b721df4b
@ -175,6 +175,19 @@ jobs:
|
||||
}
|
||||
}
|
||||
|
||||
- name: Add jq to PATH
|
||||
shell: powershell
|
||||
run: |
|
||||
$jqPath = "C:\ProgramData\chocolatey\bin"
|
||||
if (Test-Path $jqPath) {
|
||||
Add-Content -Path $env:GITHUB_PATH -Value $jqPath
|
||||
$env:PATH = "$jqPath;$env:PATH"
|
||||
Write-Host "Added jq path to GITHUB_PATH and current PATH"
|
||||
} else {
|
||||
Write-Host "jq installation path not found"
|
||||
exit 1
|
||||
}
|
||||
|
||||
- name: Setup Flutter
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user