I have the following GitLab-ci YAML file. the manual job gets skipped, and the pipeline completes successfully even though the manual job did not get triggered.
How can I fix it and why did this happen?
stages:
- stage1
- stage2
job1:
stage: stage1
script:
- echo "this is an automatic job"
manual_job:
stage: stage2
script:
- echo "This is a manual job"
when: manual