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 29cdadc commit f79129a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/download-engine/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ runs:
cat $TEMPDIR/target.json | jq -er '[.assets[] | select(.name | contains("'$TARGET'") and endswith(".7z.txt"))][0]' > $TEMPDIR/assets_txt.json
LIST_URL=$(cat $TEMPDIR/assets_txt.json | jq -er '.browser_download_url')
echo "7z.txt url: $LIST_URL"
echo $LIST_URL | xargs curl -sSL > $TEMPDIR/download_name.txt
echo $LIST_URL | xargs curl -sSL -H "Authorization: Bearer ${{ github.token }}" > $TEMPDIR/download_name.txt
echo "Files to download:"
cat $TEMPDIR/download_name.txt | sed -e 's|^|- |'
# ファイル一覧の txt にあるファイルをダウンロード
for i in $(cat $TEMPDIR/download_name.txt); do
URL=$(cat $TEMPDIR/target.json | jq -er "[.assets[] | select(.name == \"$i\")][0].browser_download_url")
echo "Download url: $URL, dest: $TEMPDIR/$i"
curl -sSL $URL -o $TEMPDIR/$i &
curl -sSL -H "Authorization: Bearer ${{ github.token }}" $URL -o $TEMPDIR/$i &
done
for job in `jobs -p`; do
wait $job
Expand Down

0 comments on commit f79129a

Please sign in to comment.