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

     1  job:
     2      rules:
     3          - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
     4            variables:
     5              DEPLOY_VARIABLE: deploy-production
     6          - if: $CI_COMMIT_REF_NAME =~ /feature/
     7            variables:
     8              IS_A_FEATURE: "true"
     9      script:
    10          - echo "Run script with $DEPLOY_VARIABLE as an argument"
    11          - echo "Run another script if $IS_A_FEATURE exists"
    12      variables:
    13          DEPLOY_VARIABLE: default-deploy