job name check is not strict enough
Summary
ensure-job-added will pass if any job has the specified job_name as a substring
Steps to reproduce
Add a job whose name contains the specified job_name as a substring
Example Project
https://gitlab.com/bradmac/ensure-job-added-false-positive-sscce
What is the current bug behavior?
What is the expected correct behavior?
Job should only succeed if its name matches exactly
Possible fixes
Instead of using matches, use ==: map(select(.name == $expected_job_name))