File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -121,8 +121,10 @@ jobs:
121121 mkdir -p extension-temp
122122 cd extension-temp
123123
124- HTTP_CODE=$(curl -s -w "%{http_code}" -o release.json \
124+ HTTP_CODE=$(curl -L - s -w "%{http_code}" -o release.json \
125125 -H "Authorization: token $TOKEN" \
126+ -H "Accept: application/vnd.github+json" \
127+ -H "X-GitHub-Api-Version: 2022-11-28" \
126128 "https://api.github.com/repos/$REPO/releases/tags/$TAG")
127129
128130 if [ "$HTTP_CODE" != "200" ]; then
Original file line number Diff line number Diff line change 8585 echo "⬇️ Fetching release info for $TAG from $REPO..."
8686
8787 # 1. Get Release Info
88- HTTP_CODE=$(curl -s -w "%{http_code}" -o release.json \
88+ HTTP_CODE=$(curl -L - s -w "%{http_code}" -o release.json \
8989 -H "Authorization: token ${{ secrets.SENTIENCE_CHROME_TOKEN }}" \
90+ -H "Accept: application/vnd.github+json" \
91+ -H "X-GitHub-Api-Version: 2022-11-28" \
9092 "https://api.github.com/repos/$REPO/releases/tags/$TAG")
9193
9294 if [ "$HTTP_CODE" != "200" ]; then
You can’t perform that action at this time.
0 commit comments