mirror of
https://github.com/alibaba/open-code-review.git
synced 2026-07-09 17:28:58 +00:00
fix(ci): replace bash here-string with POSIX parameter expansion
The CI container uses sh (not bash), which doesn't support the <<< here-string syntax, causing "Syntax error: redirection unexpected".
This commit is contained in:
parent
11b42c3826
commit
b46f48e40d
1 changed files with 4 additions and 1 deletions
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
|
|
@ -114,7 +114,10 @@ jobs:
|
|||
win32-x64:opencodereview-windows-amd64.exe:opencodereview.exe"
|
||||
|
||||
for entry in $PLATFORMS; do
|
||||
IFS=':' read -r platform_dir dist_binary dest_name <<< "$entry"
|
||||
platform_dir="${entry%%:*}"
|
||||
rest="${entry#*:}"
|
||||
dist_binary="${rest%%:*}"
|
||||
dest_name="${rest#*:}"
|
||||
pkg_dir="npm/$platform_dir"
|
||||
mkdir -p "$pkg_dir/bin"
|
||||
cp "$dist_binary" "$pkg_dir/bin/$dest_name"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue