Difference between revisions of "GitLab rules:"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
myjob: | myjob: | ||
rules: | rules: | ||
− | - if: $CI_MERGE_REQUEST_ID | + | - [[if:]] $CI_MERGE_REQUEST_ID |
when: always | when: always | ||
- when: never | - when: never |
Revision as of 09:06, 26 August 2022
https://docs.gitlab.com/ee/ci/yaml/#rules
myjob: rules: - if: $CI_MERGE_REQUEST_ID when: always - when: never script: - echo "Test"
See also
Advertising: