File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -121,10 +121,11 @@ jobs:
121121 pushd models
122122 for tag in $(echo "${{ github.event.inputs.model-tags }}" | tr ',' ' '); do
123123 echo "Handling tag $tag"
124- curl -s https://api.github.com/repos/AmusementClub/vs-mlrt/releases/tags/"$tag" > release.json
124+ curl -s -H 'Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' https://api.github.com/repos/AmusementClub/vs-mlrt/releases/tags/"$tag" > release.json
125+ cat release.json
125126 for url in $(cat release.json | jq '.assets | .[] | .url ' | tr -d '"'); do
126127 echo "Downloading $url"
127- curl -o dl.7z -LJ -H 'Accept: application/octet-stream' "$url"
128+ curl -o dl.7z -LJ -H 'Accept: application/octet-stream' -H 'Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' "$url"
128129 # later release should overwrite earlier ones
129130 7za x -y dl.7z
130131 done
You can’t perform that action at this time.
0 commit comments