gitlab CI: add workflow rules

Needed due to the gitlab config changes described in:
 https://gitlab.freedesktop.org/freedesktop/freedesktop/-/issues/438

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
Alan Coopersmith 2023-03-14 10:39:32 -07:00
parent 1209a1bb57
commit 445834826d

View File

@ -139,3 +139,12 @@ check-merge-request:
reports: reports:
junit: results.xml junit: results.xml
allow_failure: true allow_failure: true
#
# Workflow rules needed due to:
# https://gitlab.freedesktop.org/freedesktop/freedesktop/-/issues/438
#
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
- if: $CI_PIPELINE_SOURCE == 'push'