From e2e280610dba7f37685cd656faf3446d968bfbe0 Mon Sep 17 00:00:00 2001 From: Jakub Beránek Date: Thu, 2 May 2024 22:41:11 +0200 Subject: Make the regex more robust --- src/ci/github-actions/calculate-job-matrix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ci/github-actions') diff --git a/src/ci/github-actions/calculate-job-matrix.py b/src/ci/github-actions/calculate-job-matrix.py index 4aba5059d41..7c42c4ec5c6 100755 --- a/src/ci/github-actions/calculate-job-matrix.py +++ b/src/ci/github-actions/calculate-job-matrix.py @@ -80,7 +80,7 @@ def get_custom_jobs(ctx: GitHubCtx) -> List[str]: if ctx.commit_message is None: return [] - regex = re.compile(r"ci-job: (.*)") + regex = re.compile(r"^ci-job: (.*)", re.MULTILINE) jobs = [] for match in regex.finditer(ctx.commit_message): jobs.append(match.group(1)) -- cgit 1.4.1-3-g733a5