Stop_review is not triggered on branch deletion when stage under same stage called "deploy"
### Summary Stop_review job is not triggered on branch deletion when all other jobs have ran. ### Steps to reproduce See example of `.gitlb-ci.yml`: ``` stages: - build - deploy - test ... deploy_review: stage: deploy variables: GIT_STRATEGY: none script: ... environment: name: review/$CI_COMMIT_REF_SLUG url: https://$CI_ENVIRONMENT_SLUG.example.com on_stop: stop_review when: manual stop_review: stage: deploy script: ... environment: name: review/$CI_COMMIT_REF_SLUG action: stop when: manual test_sauce: stage: test needs: ["deploy_review"] trigger: include: .gitlab-ci-testing.yml variables: EMULATE_BRANCH: $EMULATE_BRANCH ``` Similar to issue [#64048](https://gitlab.com/gitlab-org/gitlab-foss/-/issues/64048). The difference is I have the **deploy_review** job to be ran manually as well as another job being ran afterwards. When deploy_review job runs and passes it triggers test_sauce and both run successfully, but stop_review fails to start when branch is deleted I tried multiple ways as instructed within the documentation [when branch is deleted](https://docs.gitlab.com/ee/ci/environments/#stop-an-environment-when-a-branch-is-deleted). ### What is the current *bug* behavior? stop_review job is **not** triggered automatically when branch is deleted. ### What is the expected *correct* behavior? Stop job is triggered automatically when branch is deleted. ### Output of checks This bug happens within our enterprise of gitlab
issue