“Merge When Pipeline Succeeds” with manual jobs

Replace this template with your information

Is there a way to have manual jobs (like deploy stage) but allow “Merge When Pipeline Succeeds” for non-manual jobs?

Occasionally we would like to “Merge When Pipeline Succeeds” without running the manual jobs.

According to this article it is not possible but that article is two years old so I don’t know if it is accurate.

Yes there is! You can set allow_failure to true and the pipelines will be set to success even if you manual jobs are not yet run.

manual-job-when:
  when: manual
  allow_failure: true 
manual-job-rules:
  rules:
    - if: '$CI_MERGE_REQUEST_IID'
      when: manual
      allow_failure: true

For more information take a look at this issue