Skip to content

Commit

Permalink
COMP: Fix version extraction in pre-commit-autoupdate workflow
Browse files Browse the repository at this point in the history
Add support for versions specified without the "v" prefix.
  • Loading branch information
jcfr committed May 21, 2024
1 parent 6905bb1 commit 3dc7dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit-autoupdate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
import sys
for line in sys.stdin:
match = re.match(r"\[https://github.com/([^/]+/[^/]+)\] updating (v[\d.]+) -> (v[\d.]+)", line.strip())
match = re.match(r"\[https://github.com/([^/]+/[^/]+)\] updating (v?[\d.]+) -> (v?[\d.]+)", line.strip())
if match:
repo_url = match.group(1)
old_version = match.group(2)
Expand Down

0 comments on commit 3dc7dab

Please sign in to comment.