CI: only check the MR if we're in a merge request pipeline

This commit is contained in:
Peter Hutterer 2024-02-28 18:53:06 +10:00
parent beca998122
commit 399ba5e0ee
2 changed files with 6 additions and 0 deletions

View file

@ -1034,6 +1034,9 @@ check-merge-request:
reports:
junit: results.xml
allow_failure: true
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
build rpm:
extends:

View file

@ -695,6 +695,9 @@ check-merge-request:
reports:
junit: results.xml
allow_failure: true
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
{% for distro in distributions if distro.name == "fedora" %}
{% set version = "{}".format(distro.versions|last()) %}