mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-01-22 21:41:39 +01:00
Fix bump-version script for no v
(#1414)
This commit is contained in:
parent
92f15f8275
commit
255a3b3611
@ -49,11 +49,11 @@ def sub(path, pattern, repl, expected_count=1):
|
|||||||
|
|
||||||
|
|
||||||
def write_version(version: Version):
|
def write_version(version: Version):
|
||||||
# ESPHOME_REF = v1.14.4
|
# ESPHOME_REF = 2021.8.0
|
||||||
sub(
|
sub(
|
||||||
"Makefile",
|
"Makefile",
|
||||||
r"ESPHOME_REF = .*",
|
r"ESPHOME_REF = .*",
|
||||||
f"ESPHOME_REF = v{version}" if not version.dev else "ESPHOME_REF = dev",
|
f"ESPHOME_REF = {version}" if not version.dev else "ESPHOME_REF = dev",
|
||||||
)
|
)
|
||||||
# PROJECT_NUMBER = 1.14.4
|
# PROJECT_NUMBER = 1.14.4
|
||||||
sub(
|
sub(
|
||||||
|
Loading…
Reference in New Issue
Block a user