mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Escape core version [ci] (#99364)
This commit is contained in:
parent
5819091af7
commit
cc9f0aaf80
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
@ -36,7 +36,7 @@ env:
|
|||||||
CACHE_VERSION: 5
|
CACHE_VERSION: 5
|
||||||
PIP_CACHE_VERSION: 4
|
PIP_CACHE_VERSION: 4
|
||||||
MYPY_CACHE_VERSION: 4
|
MYPY_CACHE_VERSION: 4
|
||||||
HA_SHORT_VERSION: 2023.10
|
HA_SHORT_VERSION: "2023.10"
|
||||||
DEFAULT_PYTHON: "3.11"
|
DEFAULT_PYTHON: "3.11"
|
||||||
ALL_PYTHON_VERSIONS: "['3.11']"
|
ALL_PYTHON_VERSIONS: "['3.11']"
|
||||||
# 10.3 is the oldest supported version
|
# 10.3 is the oldest supported version
|
||||||
|
@ -135,8 +135,8 @@ def write_ci_workflow(version: Version) -> None:
|
|||||||
|
|
||||||
short_version = ".".join(str(version).split(".", maxsplit=2)[:2])
|
short_version = ".".join(str(version).split(".", maxsplit=2)[:2])
|
||||||
content = re.sub(
|
content = re.sub(
|
||||||
r"(\n\W+HA_SHORT_VERSION: )\d{4}\.\d{1,2}\n",
|
r"(\n\W+HA_SHORT_VERSION: )\"\d{4}\.\d{1,2}\"\n",
|
||||||
f"\\g<1>{short_version}\n",
|
f'\\g<1>"{short_version}"\n',
|
||||||
content,
|
content,
|
||||||
count=1,
|
count=1,
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user