Skip to content

Commit 8a1cf1c

Browse files
committed
Fix: Update regex patterns for version and sha256 in conda recipe
1 parent 1610a85 commit 8a1cf1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,13 @@ jobs:
170170
path = Path("conda/recipe/meta.yaml")
171171
content = path.read_text(encoding="utf-8")
172172
content, count_version = re.subn(
173-
r'{%\\s*set\\s+version\\s*=\\s*"\\d+\\.\\d+\\.\\d+"\\s*%}',
173+
r'{%\s*set\s+version\s*=\s*"[^"]+"\s*%}',
174174
f'{{% set version = "{version}" %}}',
175175
content,
176176
count=1,
177177
)
178178
content, count_sha = re.subn(
179-
r'^\\s*sha256:\\s*[a-fA-F0-9]{64}',
179+
r'^\s*sha256:\s*[a-fA-F0-9]{64}',
180180
f' sha256: {sha}',
181181
content,
182182
count=1,

0 commit comments

Comments
 (0)