github.com/drone/go-convert@v0.0.0-20240307072510-6bd371c65e61/convert/gitlab/yaml/testdata/job_keywords/rules/if.yaml (about)

     1  # https://docs.gitlab.com/ee/ci/yaml/#rulesif
     2  
     3  job:
     4    script: echo "Hello, Rules!"
     5    rules:
     6      - if: $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ /^feature/ && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH
     7        when: never
     8      - if: $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ /^feature/
     9        when: manual
    10        allow_failure: true
    11      - if: $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME