Skip to content

Commit

Permalink
Fix: GitHub Actions ワークフローからリリースの AivisSpeech Engine パッケージをダウンロードする処理…
Browse files Browse the repository at this point in the history
…にコケるのを修正

なぜコケるのか全く分からないが、ひとまず LLM さんの言う通りに修正してみる… シェル芸何も分からない
  • Loading branch information
tsukumijima committed Jul 14, 2024
1 parent 043cc5f commit 93dec47
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/test-engine-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,12 @@ jobs:
- name: <Setup> Download ENGINE package
run: |
mkdir -p download
curl -L -H "Authorization: Bearer ${{ github.token }}" -o "download/list.txt" "${{ steps.vars.outputs.release_url }}/${{ steps.vars.outputs.package_name }}.7z.txt"
<download/list.txt xargs -I '%' curl -L -H "Authorization: Bearer ${{ github.token }}" -o "download/%" "${{ steps.vars.outputs.release_url }}/%"
release_url="${{ steps.vars.outputs.release_url }}"
package_name="${{ steps.vars.outputs.package_name }}"
curl -L -H "Authorization: Bearer ${{ github.token }}" -o "download/list.txt" "${release_url}/${package_name}.7z.txt"
while IFS= read -r file; do
curl -L -H "Authorization: Bearer ${{ github.token }}" -o "download/${file}" "${release_url}/${file}"
done < download/list.txt
7z x "download/$(head -n1 download/list.txt)"
mv "${{ matrix.target }}" dist/
Expand Down

0 comments on commit 93dec47

Please sign in to comment.