Skip to content

Quote injected release version so numeric versions stay strings - #197

Merged
Jesse Hills (jesserockz) merged 1 commit into
mainfrom
jesserockz-2026-797
Oct 27, 2026
Merged

Jesse Hills (jesserockz) merged 1 commit into
mainfrom
jesserockz-2026-797

Conversation

@jesserockz

Copy link
Copy Markdown
Member

Fixes #149.

A release whose title is purely numeric (e.g. 1.0) broke the build. build.yml injects the release version into each project config with sed, and the replacement was unquoted, so the generated config read version: 1.0. ESPHome's YAML parser interprets that as a float and fails validation with "Must be string, got EFloat". Quoting the substituted value makes it always a YAML string (version: "1.0").

Added tests/ci-numeric.yaml and a dedicated ci-numeric-version.yml workflow that builds it with release-version: "1.0", exercising the real sed + build path end to end. Without the fix the ESPHome build fails and no manifest is produced. It lives in its own workflow rather than a job in ci.yml because ci.yml's verify jobs download every artifact of their run and assume one shared version directory, which the 1.0/ directory would break - the same reason ci-draft-release.yml is split out.

A purely numeric release title (e.g. 1.0) was substituted into the
project config unquoted, so ESPHome parsed `version: 1.0` as a float
and failed the build. Quote the value so it is always a YAML string.
@jesserockz
Jesse Hills (jesserockz) merged commit efff577 into main Oct 27, 2026
45 checks passed
@jesserockz
Jesse Hills (jesserockz) deleted the jesserockz-2026-797 branch October 27, 2026 18:39
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.

Release Workflow fails when release title is a number

1 participant