Skip to content

Commit

Permalink
Update increase_build_number.py
Browse files Browse the repository at this point in the history
  • Loading branch information
looooo authored Dec 31, 2024
1 parent 5294e79 commit 4b625de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recipe/increase_build_number.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
response.raise_for_status()
sha256 = response.content.decode('utf-8')
print(f"set sha256: {sha256}")
text = re.sub(r"(?<={% set sha256 = )\d+", str(sha256), text)
text = re.sub(r'(?<={% set sha256 = ")[a-fA-F0-9]+(?=" %})', str(sha256), text)

# write meta.yaml file
with open("recipe/meta.yaml", "w") as f:
f.write(text)
f.write(text)

0 comments on commit 4b625de

Please sign in to comment.