Skip to content

Fix tool versions page asset download#16

Merged
matthew-on-git merged 1 commit intomainfrom
fix/tool-versions-asset-download
Mar 17, 2026
Merged

Fix tool versions page asset download#16
matthew-on-git merged 1 commit intomainfrom
fix/tool-versions-asset-download

Conversation

@matthew-on-git
Copy link
Contributor

Summary

  • Add Accept: application/octet-stream header when downloading release asset via gh api
  • Without this header, gh api returns the asset metadata JSON (no .tools key), causing jq to fail with null has no keys

Test plan

  • bash .github/scripts/generate-versions-page.sh generates valid markdown with v1.7.0 tool table
  • Next scheduled run of Update Tool Versions workflow succeeds

🤖 Generated with Claude Code

gh api on an asset URL returns asset metadata by default, not the file
content. Add Accept: application/octet-stream header so the actual
tool-versions.json is downloaded instead of the GitHub metadata object.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@matthew-on-git matthew-on-git merged commit 2288fda into main Mar 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant