native macOS codings agent orchestrator
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #75 from onevcat/chore/fix-homebrew-cask-template-regex

ci: preserve cask stanza spacing when updating tap

authored by

Wei Wang and committed by
GitHub
6cb0d44d 23dca185

+3 -3
+3 -3
.github/workflows/release-homebrew-cask.yml
··· 94 94 print("Created tap/Casks/prowl.rb") 95 95 else: 96 96 text = path.read_text() 97 - text = re.sub(r'^\s*desc\s+\".*\"\s*$', ' desc "Coding agent orchestrator"', text, flags=re.M) 98 - text = re.sub(r'^\s*version\s+\".*\"\s*$', f' version \"{version}\"', text, flags=re.M) 99 - text = re.sub(r'^\s*sha256\s+\".*\"\s*$', f' sha256 \"{sha}\"', text, flags=re.M) 97 + text = re.sub(r'^[ \t]*desc[ \t]+\".*\"[ \t]*$', ' desc "Coding agent orchestrator"', text, flags=re.M) 98 + text = re.sub(r'^[ \t]*version[ \t]+\".*\"[ \t]*$', f' version "{version}"', text, flags=re.M) 99 + text = re.sub(r'^[ \t]*sha256[ \t]+\".*\"[ \t]*$', f' sha256 "{sha}"', text, flags=re.M) 100 100 path.write_text(text) 101 101 print("Updated tap/Casks/prowl.rb") 102 102 PY