From 2b3aa71d8cfa3c9bbebb84d72b2e21960c7412e4 Mon Sep 17 00:00:00 2001 From: Fernando Fernandez Mancera Date: Wed, 29 May 2024 15:02:13 +0200 Subject: [PATCH] gitlab: adjust ci.template The recommendations from freedesktop [1] about how to maintain a Gitlab project changed therefore we must adapt the rules. Solves: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1549 [1] https://gitlab.freedesktop.org/freedesktop/freedesktop/-/issues/540#what-it-means-for-me-a-maintainer-of-a-project-part-of-gitlabfreedesktoporg --- .gitlab-ci/ci.template | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci/ci.template b/.gitlab-ci/ci.template index 28e4ca25e3..85b3601850 100644 --- a/.gitlab-ci/ci.template +++ b/.gitlab-ci/ci.template @@ -267,5 +267,7 @@ clean-images: workflow: rules: - if: $CI_PIPELINE_SOURCE == 'merge_request_event' - - if: $CI_PIPELINE_SOURCE == 'push' + - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS + when: never + - if: $CI_COMMIT_BRANCH - if: $CI_PIPELINE_SOURCE == 'schedule'