Skip to content

Commit cce146c

Browse files
authored
Merge pull request #216 from Predicate-Labs/fix_sync
fix sync
2 parents c24ad72 + 16a0503 commit cce146c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,10 @@ jobs:
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

.github/workflows/sync-extension.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ jobs:
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

0 commit comments

Comments
 (0)