Fix release ID extraction in release workflow #70

Merged
qwc merged 1 commit from fix/release-id-extraction into main 2026-02-16 17:45:01 +01:00
Owner

Summary

  • The sed regex 's/.*"id":\([0-9]*\).*/\1/p' is greedy — it matched the last "id": in the JSON response (the author's user ID, typically 1) instead of the release's ID
  • Replaced with jq '.id' for correct JSON parsing

This is why the upload was hitting /releases/1/assets (wrong release) and getting a 404.

🤖 Generated with Claude Code

## Summary - The `sed` regex `'s/.*"id":\([0-9]*\).*/\1/p'` is greedy — it matched the **last** `"id":` in the JSON response (the author's user ID, typically `1`) instead of the release's ID - Replaced with `jq '.id'` for correct JSON parsing This is why the upload was hitting `/releases/1/assets` (wrong release) and getting a 404. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Fix release ID extraction in release workflow
All checks were successful
CI / test (pull_request) Successful in 1m6s
CI / build (pull_request) Successful in 50s
Release / test (push) Successful in 1m4s
CI / docker (pull_request) Has been skipped
Release / release (push) Successful in 48s
Release / docker (push) Successful in 1m23s
Release / notify (push) Successful in 1s
acd7eb9ec4
The sed regex was greedy and matched the last "id": in the JSON
(the author's user ID) instead of the release ID. Replaced with
jq for reliable JSON parsing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
qwc merged commit 46dc9b6d23 into main 2026-02-16 17:45:01 +01:00
qwc deleted branch fix/release-id-extraction 2026-02-16 17:45:01 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
qwc-open/asiakirjat!70
No description provided.