Skip to content

Commit af2db05

Browse files
authored
Merge pull request #217 from Predicate-Labs/fix_sync
another fix for sync
2 parents cce146c + b24622d commit af2db05

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
@@ -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

.github/workflows/sync-extension.yml

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

0 commit comments

Comments
 (0)