Skip to content

Commit f1f0a4c

Browse files
committed
ci: fix brew formula regex
1 parent 2387049 commit f1f0a4c

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/publish-brew.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,18 +96,18 @@ jobs:
9696
text,
9797
)
9898
text = re.sub(
99-
r'(goodcommit-aarch64-apple-darwin.tar.gz"\\n\\s+sha256 ")[^"]+(")',
100-
r'\\g<1>' + sha_aarch64 + r'\\g<2>',
99+
r'(goodcommit-aarch64-apple-darwin.tar.gz"\n\s+sha256 ")[^"]+(")',
100+
r'\g<1>' + sha_aarch64 + r'\g<2>',
101101
text,
102102
)
103103
text = re.sub(
104-
r'(goodcommit-x86_64-apple-darwin.tar.gz"\\n\\s+sha256 ")[^"]+(")',
105-
r'\\g<1>' + sha_x86_64_macos + r'\\g<2>',
104+
r'(goodcommit-x86_64-apple-darwin.tar.gz"\n\s+sha256 ")[^"]+(")',
105+
r'\g<1>' + sha_x86_64_macos + r'\g<2>',
106106
text,
107107
)
108108
text = re.sub(
109-
r'(goodcommit-x86_64-unknown-linux-gnu.tar.gz"\\n\\s+sha256 ")[^"]+(")',
110-
r'\\g<1>' + sha_linux + r'\\g<2>',
109+
r'(goodcommit-x86_64-unknown-linux-gnu.tar.gz"\n\s+sha256 ")[^"]+(")',
110+
r'\g<1>' + sha_linux + r'\g<2>',
111111
text,
112112
)
113113

0 commit comments

Comments
 (0)