From e2e280610dba7f37685cd656faf3446d968bfbe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Thu, 2 May 2024 22:41:11 +0200 Subject: [PATCH] Make the regex more robust --- src/ci/github-actions/calculate-job-matrix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ci/github-actions/calculate-job-matrix.py b/src/ci/github-actions/calculate-job-matrix.py index 4aba5059d419..7c42c4ec5c6b 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))