Fix asset ID extraction in publish script #38

Closed
opened 2026-03-04 15:05:50 +00:00 by mik-tf · 0 comments
Owner

Context

The grep pattern in publish_skills.sh assumes JSON field order name→id, but the Forgejo API returns id→name. Assets are never deleted before upload, causing duplicates.

Goals

  • Replace grep-based ID extraction with python3 JSON parsing (order-agnostic)
  • Tested locally: correctly finds and removes existing assets before upload
## Context The grep pattern in publish_skills.sh assumes JSON field order name→id, but the Forgejo API returns id→name. Assets are never deleted before upload, causing duplicates. ## Goals - Replace grep-based ID extraction with python3 JSON parsing (order-agnostic) - Tested locally: correctly finds and removes existing assets before upload
Sign in to join this conversation.
No labels
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
lhumina_code/hero_skills#38
No description provided.