Skip to content

Commit cec3aca

Browse files
JOYclaude
andcommitted
fix(ci): fix make_latest type error in release API call
GitHub API expects make_latest as string "true", not boolean true. Changed -F (JSON type) to -f (string type). Also fixed RELEASE_ID extraction to properly handle 404 responses. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d9ce4b4 commit cec3aca

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/sync-upstream.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,7 @@ jobs:
146146
fi
147147
148148
# Delete existing release if any (from upstream fork sync)
149-
RELEASE_ID=$(gh api "repos/${{ github.repository }}/releases/tags/$TAG" --jq '.id' 2>/dev/null || true)
150-
if [ -n "$RELEASE_ID" ]; then
149+
if RELEASE_ID=$(gh api "repos/${{ github.repository }}/releases/tags/$TAG" --jq '.id' 2>/dev/null); then
151150
echo "Deleting existing release $RELEASE_ID for $TAG"
152151
gh api -X DELETE "repos/${{ github.repository }}/releases/$RELEASE_ID" 2>/dev/null || true
153152
fi
@@ -157,7 +156,7 @@ jobs:
157156
-f tag_name="$TAG" \
158157
-f name="DOScan $TAG" \
159158
-f body="Synced from upstream [blockscout/blockscout $TAG](https://github.com/blockscout/blockscout/releases/tag/$TAG)" \
160-
-F make_latest=true
159+
-f make_latest="true"
161160
162161
- name: Create PR on conflict
163162
if: steps.target.outputs.skip == 'false' && steps.merge.outputs.result == 'conflict'

0 commit comments

Comments
 (0)