Skip to content
This repository was archived by the owner on Nov 21, 2021. It is now read-only.

Commit ed58501

Browse files
committed
Add accept header as recommended by API doco
1 parent 48159a3 commit ed58501

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/fetch-github-artifacts.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ for i in 0 1 2 3 4 5 6 7; do
6666
echo "Link: $link"
6767

6868
mkdir "$name"
69-
curl --user "Kage-Yami:$GITHUB_API_TOKEN" "$link" --output "$name.zip"
69+
curl --header "accept: application/vnd.github.v3+json" \
70+
--user "Kage-Yami:$GITHUB_API_TOKEN" "$link" --output "$name.zip"
7071
unzip "$name.zip" -d "$name/"
7172

7273
echo "... download complete! Uploading artifact..."

0 commit comments

Comments
 (0)