Skip to content

fix(deploy): pass commit message via env var (multi-line safe)#42

Merged
TaprootFreak merged 1 commit into
developfrom
fix/wrangler-commit-message
May 26, 2026
Merged

fix(deploy): pass commit message via env var (multi-line safe)#42
TaprootFreak merged 1 commit into
developfrom
fix/wrangler-commit-message

Conversation

@TaprootFreak

Copy link
Copy Markdown

GitHub Actions expanding a multi-line commit message directly into a shell argument breaks wrangler. Switching to an env var fixes it.

Previously failed run example: JuiceSwapxyz/documentation run 26468813723 ("Unknown arguments: requires, at, least, Node.js, v22.0.0"). Same bug in all 5 docs repos.

GitHub Actions expansion of multi-line strings into a shell argument like
--commit-message="${{ github.event.head_commit.message }}" splits on
newlines and wrangler reads the trailing lines as positional arguments
("Unknown arguments: …"). Pass the message via an env var instead.
@TaprootFreak TaprootFreak merged commit 5bca9a7 into develop May 26, 2026
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