Skip to content

Commit

Permalink
Fix: GitHub Actions ワークフローからリリースの AivisSpeech Engine パッケージをダウンロードする処理…
Browse files Browse the repository at this point in the history
…にコケるのを再度修正
  • Loading branch information
tsukumijima committed Jul 14, 2024
1 parent 93dec47 commit cfa6410
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/test-engine-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,16 @@ jobs:
key: ${{ runner.os }}-${{ runner.arch }}-poetry-${{ hashFiles('**/poetry.lock') }}

- name: <Setup> Download ENGINE package
env:
GH_TOKEN: ${{ github.token }}
run: |
mkdir -p download
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"
gh release download "${{ env.VERSION }}" -p "${package_name}.7z.txt" -D download
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)"
gh release download "${{ env.VERSION }}" -p "$file" -D download
done < "download/${package_name}.7z.txt"
7z x "download/$(head -n1 download/${package_name}.7z.txt)"
mv "${{ matrix.target }}" dist/
- name: <Setup> Set up permission
Expand Down

0 comments on commit cfa6410

Please sign in to comment.