From 16a0503cd6568ccc1a42d6624eec88cd6106926e Mon Sep 17 00:00:00 2001 From: SentienceDEV Date: Thu, 12 Feb 2026 20:59:00 -0800 Subject: [PATCH] fix sync --- .github/workflows/release.yml | 4 +++- .github/workflows/sync-extension.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9f21452..1851425 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -98,8 +98,10 @@ jobs: echo "Using extension release tag from input: $TAG" else echo "No extension_release_tag provided. Resolving latest release tag from $REPO..." - HTTP_CODE=$(curl -s -o latest_release.json -w "%{http_code}" \ + HTTP_CODE=$(curl -L -s -o latest_release.json -w "%{http_code}" \ -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/latest") if [ "$HTTP_CODE" != "200" ]; then diff --git a/.github/workflows/sync-extension.yml b/.github/workflows/sync-extension.yml index 6fd1f1d..e9804d0 100644 --- a/.github/workflows/sync-extension.yml +++ b/.github/workflows/sync-extension.yml @@ -42,8 +42,10 @@ jobs: else # Scheduled check - get latest release # Note: This also needs a token with access to the private repo - HTTP_CODE=$(curl -s -o latest_release.json -w "%{http_code}" \ + HTTP_CODE=$(curl -L -s -o latest_release.json -w "%{http_code}" \ -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/${{ secrets.SENTIENCE_CHROME_REPO }}/releases/latest") if [ "$HTTP_CODE" != "200" ]; then