diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1851425..de5ff0c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -121,8 +121,10 @@ jobs: mkdir -p extension-temp cd extension-temp - HTTP_CODE=$(curl -s -w "%{http_code}" -o release.json \ + HTTP_CODE=$(curl -L -s -w "%{http_code}" -o release.json \ -H "Authorization: token $TOKEN" \ + -H "Accept: application/vnd.github+json" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ "https://api.github.com/repos/$REPO/releases/tags/$TAG") if [ "$HTTP_CODE" != "200" ]; then diff --git a/.github/workflows/sync-extension.yml b/.github/workflows/sync-extension.yml index e9804d0..708e708 100644 --- a/.github/workflows/sync-extension.yml +++ b/.github/workflows/sync-extension.yml @@ -85,8 +85,10 @@ jobs: echo "⬇️ Fetching release info for $TAG from $REPO..." # 1. Get Release Info - HTTP_CODE=$(curl -s -w "%{http_code}" -o release.json \ + HTTP_CODE=$(curl -L -s -w "%{http_code}" -o release.json \ -H "Authorization: token ${{ secrets.SENTIENCE_CHROME_TOKEN }}" \ + -H "Accept: application/vnd.github+json" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ "https://api.github.com/repos/$REPO/releases/tags/$TAG") if [ "$HTTP_CODE" != "200" ]; then