diff --git a/.gitea/workflows/handy-update.yml b/.gitea/workflows/handy-update.yml index 47c3bc4..da02d5d 100644 --- a/.gitea/workflows/handy-update.yml +++ b/.gitea/workflows/handy-update.yml @@ -60,8 +60,8 @@ jobs: import re p='modules/pkgs/handy.nix' s=open(p).read() - s=re.sub(r'(version\s*=\s*")[^"]+(";)', r'\1${latest_version}\2', s, count=1) - s=re.sub(r'(hash\s*=\s*")[^"]+(";)', r'\1${new_hash}\2', s, count=1) + s=re.sub(r'version\s*=\s*"[^"]+"', f'version = "{latest_version}"', s, count=1) + s=re.sub(r'hash\s*=\s*"[^"]+"', f'hash = "{new_hash}"', s, count=1) open(p,'w').write(s) PY diff --git a/.gitea/workflows/helium-update.yml b/.gitea/workflows/helium-update.yml index f34aecc..18b1129 100644 --- a/.gitea/workflows/helium-update.yml +++ b/.gitea/workflows/helium-update.yml @@ -61,8 +61,8 @@ jobs: import re p='modules/pkgs/helium.nix' s=open(p).read() - s=re.sub(r'(version\s*=\s*")[^"]+(";)', r'\1${latest_version}\2', s, count=1) - s=re.sub(r'(hash\s*=\s*")[^"]+(";)', r'\1${new_hash}\2', s, count=1) + s=re.sub(r'version\s*=\s*"[^"]+"', f'version = "{latest_version}"', s, count=1) + s=re.sub(r'hash\s*=\s*"[^"]+"', f'hash = "{new_hash}"', s, count=1) open(p,'w').write(s) PY diff --git a/.gitea/workflows/zen-browser-update.yml b/.gitea/workflows/zen-browser-update.yml index 7a52d2f..fee8f39 100644 --- a/.gitea/workflows/zen-browser-update.yml +++ b/.gitea/workflows/zen-browser-update.yml @@ -59,8 +59,8 @@ jobs: import re p='modules/pkgs/zen-browser.nix' s=open(p).read() - s=re.sub(r'(version\s*=\s*")[^"]+(";)', r'\1${latest_version}\2', s, count=1) - s=re.sub(r'(hash\s*=\s*")[^"]+(";)', r'\1${new_hash}\2', s, count=1) + s=re.sub(r'version\s*=\s*"[^"]+"', f'version = "{latest_version}"', s, count=1) + s=re.sub(r'hash\s*=\s*"[^"]+"', f'hash = "{new_hash}"', s, count=1) open(p,'w').write(s) PY