Commit ca9a7858 authored by Albert Salim's avatar Albert Salim

Add check if it is merge request pipeline

Not having $CI_MERGE_REQUEST_APPROVED set may mean either:
- the merge request is not approved yet
- the pipeline is not a merge request pipeline
parent 75c13f96
...@@ -35,10 +35,10 @@ ...@@ -35,10 +35,10 @@
if: '$CI_MERGE_REQUEST_IID' if: '$CI_MERGE_REQUEST_IID'
.if-merge-request-approved: &if-merge-request-approved .if-merge-request-approved: &if-merge-request-approved
if: '$CI_MERGE_REQUEST_APPROVED' if: '$CI_MERGE_REQUEST_IID && $CI_MERGE_REQUEST_APPROVED'
.if-merge-request-not-approved: &if-merge-request-not-approved .if-merge-request-not-approved: &if-merge-request-not-approved
if: '$CI_MERGE_REQUEST_APPROVED != "true"' if: '$CI_MERGE_REQUEST_IID && $CI_MERGE_REQUEST_APPROVED != "true"'
.if-merge-request-title-as-if-foss: &if-merge-request-title-as-if-foss .if-merge-request-title-as-if-foss: &if-merge-request-title-as-if-foss
if: '$CI_MERGE_REQUEST_TITLE =~ /RUN AS-IF-FOSS/' if: '$CI_MERGE_REQUEST_TITLE =~ /RUN AS-IF-FOSS/'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment