Skip to content

Commit 8d2e8c7

Browse files
authenticate access
1 parent 2ea4780 commit 8d2e8c7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/windows-release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)