Skip to content

Commit 7c74343

Browse files
authored
Update cp__latest_dispatch.yml
Added Yui name Checks (Fixed incompatibility with versions < 5.17.0)
1 parent d5aabfa commit 7c74343

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/cp__latest_dispatch.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,14 @@ jobs:
7676
- name: Set IS_COMPATIBLE_CONT as Output
7777
id: is-compatible-cont
7878
run: echo "is-compatible-cont=${{ env.IS_COMPATIBLE_CONT }}" | Out-File -Append -FilePath $env:GITHUB_OUTPUT
79+
80+
- name: Set Yui name (>= 5.17.0)
81+
if: env.IS_COMPATIBLE_CONT == 'true'
82+
run: echo "YUI_NAME=yui" | Out-File -Append -FilePath $env:GITHUB_ENV
83+
84+
- name: Set Yui name (< 5.17.0)
85+
if: env.IS_COMPATIBLE_CONT == 'false'
86+
run: echo "YUI_NAME=yukihana" | Out-File -Append -FilePath $env:GITHUB_ENV
7987

8088
- name: Set Yui fiddler name (>= 5.17.0)
8189
if: env.IS_COMPATIBLE_CONT == 'true'
@@ -108,8 +116,8 @@ jobs:
108116
run: |
109117
try {
110118
# Build the download URLs
111-
$YuiFiddlerUrl = "https://github.com/project-yui/Yui-patch/releases/download/$env:Yui_RELEASE/yui-$env:Yui_FIDDLER_NAME-win32-x86_64-$env:Yui_RELEASE.dll"
112-
$YuiHostPolicyUrl = "https://github.com/project-yui/Yui-patch/releases/download/$env:Yui_RELEASE/yui-hostpolicy-win32-x86_64-$env:Yui_RELEASE.dll"
119+
$YuiFiddlerUrl = "https://github.com/project-yui/Yui-patch/releases/download/$env:Yui_RELEASE/$env:YUI_NAME-$env:Yui_FIDDLER_NAME-win32-x86_64-$env:Yui_RELEASE.dll"
120+
$YuiHostPolicyUrl = "https://github.com/project-yui/Yui-patch/releases/download/$env:Yui_RELEASE/$env:YUI_NAME-hostpolicy-win32-x86_64-$env:Yui_RELEASE.dll"
113121
114122
# Print the URLs to ensure they're correct
115123
Write-Host "Downloading files from $env:Yui_RELEASE"

0 commit comments

Comments
 (0)