Skip to content

Commit e2e2806

Browse files
committed
Make the regex more robust
1 parent 74dbe8a commit e2e2806

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/ci/github-actions/calculate-job-matrix.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def get_custom_jobs(ctx: GitHubCtx) -> List[str]:
8080
if ctx.commit_message is None:
8181
return []
8282

83-
regex = re.compile(r"ci-job: (.*)")
83+
regex = re.compile(r"^ci-job: (.*)", re.MULTILINE)
8484
jobs = []
8585
for match in regex.finditer(ctx.commit_message):
8686
jobs.append(match.group(1))

0 commit comments

Comments
 (0)