Escape core version [ci] (#99364)
This commit is contained in:
parent
5819091af7
commit
cc9f0aaf80
2 changed files with 3 additions and 3 deletions
|
@ -135,8 +135,8 @@ def write_ci_workflow(version: Version) -> None:
|
|||
|
||||
short_version = ".".join(str(version).split(".", maxsplit=2)[:2])
|
||||
content = re.sub(
|
||||
r"(\n\W+HA_SHORT_VERSION: )\d{4}\.\d{1,2}\n",
|
||||
f"\\g<1>{short_version}\n",
|
||||
r"(\n\W+HA_SHORT_VERSION: )\"\d{4}\.\d{1,2}\"\n",
|
||||
f'\\g<1>"{short_version}"\n',
|
||||
content,
|
||||
count=1,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue