diff --git a/.github/actions/download-engine/action.yml b/.github/actions/download-engine/action.yml index 9a9f8d07..eef1e85b 100644 --- a/.github/actions/download-engine/action.yml +++ b/.github/actions/download-engine/action.yml @@ -66,7 +66,7 @@ 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|^|- |' @@ -74,7 +74,7 @@ runs: 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