diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2024-05-02 22:41:11 +0200 |
|---|---|---|
| committer | Jakub Beránek <berykubik@gmail.com> | 2024-05-05 14:06:23 +0200 |
| commit | e2e280610dba7f37685cd656faf3446d968bfbe0 (patch) | |
| tree | 06723af34e22291bd8fab57318afe7e3daf6defc | |
| parent | 74dbe8ae9ef42615875ae36c0e524a48ce0fb16f (diff) | |
| download | rust-e2e280610dba7f37685cd656faf3446d968bfbe0.tar.gz rust-e2e280610dba7f37685cd656faf3446d968bfbe0.zip | |
Make the regex more robust
| -rwxr-xr-x | src/ci/github-actions/calculate-job-matrix.py | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |
