File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9898 echo "Using extension release tag from input: $TAG"
9999 else
100100 echo "No extension_release_tag provided. Resolving latest release tag from $REPO..."
101- HTTP_CODE=$(curl -s -o latest_release.json -w "%{http_code}" \
101+ HTTP_CODE=$(curl -L - s -o latest_release.json -w "%{http_code}" \
102102 -H "Authorization: token $TOKEN" \
103+ -H "Accept: application/vnd.github+json" \
104+ -H "X-GitHub-Api-Version: 2022-11-28" \
103105 "https://api.github.com/repos/$REPO/releases/latest")
104106
105107 if [ "$HTTP_CODE" != "200" ]; then
Original file line number Diff line number Diff line change 4242 else
4343 # Scheduled check - get latest release
4444 # Note: This also needs a token with access to the private repo
45- HTTP_CODE=$(curl -s -o latest_release.json -w "%{http_code}" \
45+ HTTP_CODE=$(curl -L - s -o latest_release.json -w "%{http_code}" \
4646 -H "Authorization: token ${{ secrets.SENTIENCE_CHROME_TOKEN }}" \
47+ -H "Accept: application/vnd.github+json" \
48+ -H "X-GitHub-Api-Version: 2022-11-28" \
4749 "https://api.github.com/repos/${{ secrets.SENTIENCE_CHROME_REPO }}/releases/latest")
4850
4951 if [ "$HTTP_CODE" != "200" ]; then
You can’t perform that action at this time.
0 commit comments