Skip to content

ci: bump publish-platforms pin to the multipart-JSON fix - #547

Merged
tastybento merged 1 commit into
developfrom
fix/publish-workflow-pin
Jul 29, 2026
Merged

ci: bump publish-platforms pin to the multipart-JSON fix#547
tastybento merged 1 commit into
developfrom
fix/publish-workflow-pin

Conversation

@tastybento

Copy link
Copy Markdown
Member

What

Bumps the pinned SHA of the shared publish-platforms.yml reusable workflow from ca2dcd16 (2026-07-03) to 1f91a0e (master HEAD, 2026-07-20).

Why

The 1.26.3 publish failed on both CurseForge and Hangar (run):

  • CurseForge — {"errorCode":1002,"errorMessage":"Error in field \metadata`:\nInvalid JSON."}`
  • Hangar — {"status":400,"detail":"Failed to read request"}

Both are the same root cause. The pinned version passes the multipart JSON as an inline curl value:

-F "metadata=${META};type=application/json"

curl reads ; in an inline -F value as the start of a type=/filename= attribute, so the JSON is truncated at the first semicolon in the changelog. The 1.26.3 release notes contain one (...(ChunkBlock #11); that panel was derived...); earlier releases only succeeded because their notes happened to contain none.

BentoBoxWorld/.github#13 fixed this on 2026-07-20 by writing the JSON to a file and using curl's <file form (-F "metadata=<cf_meta.json;type=application/json"), but this repo was still pinned to the commit before it.

Follow-up

Every other BentoBoxWorld repo except AcidIsland is still pinned to the stale ca2dcd16 and will hit this the moment a release body contains a semicolon.

Modrinth was unaffected — it does not go through this workflow.

🤖 Generated with Claude Code

https://claude.ai/code/session_01SAQ3YQkcfRoCZEwa6SPJcp

The pinned SHA (ca2dcd16, 2026-07-03) predates BentoBoxWorld/.github#13,
which moved the CurseForge `metadata` and Hangar `versionUpload` JSON out of
inline `-F` values and into files. curl treats `;` in an inline -F value as
the start of a `type=`/`filename=` attribute, so a release body containing a
semicolon truncates the JSON: the 1.26.3 publish failed with CurseForge
"Error in field `metadata`: Invalid JSON" and Hangar "Failed to read request".
Earlier releases only passed because their notes happened to contain no
semicolons.

Pin moved to master HEAD 1f91a0e, which contains the fix.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SAQ3YQkcfRoCZEwa6SPJcp
@sonarqubecloud

Copy link
Copy Markdown

@tastybento
tastybento merged commit 2129348 into develop Jul 29, 2026
3 checks passed
@tastybento
tastybento deleted the fix/publish-workflow-pin branch July 29, 2026 16:03
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