From c3e9fb12aa31d25e33d8392c4a233ed1275a3278 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Mon, 3 Nov 2025 16:41:58 +0000 Subject: [PATCH] CI: only run pending-updates on master This job takes a few minutes and isn't useful unless it's being ran for master, or is being actively worked on. Signed-off-by: Ross Burton Signed-off-by: Jon Mason --- .gitlab-ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 91e92ae2..c8b53bb9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -259,6 +259,11 @@ check-layers: pending-updates: extends: .setup + # Only run this job for the default branch (master), or if forced with + # BUILD_FORCE_PENDING_UPDATES. + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + - if: $BUILD_FORCE_PENDING_UPDATES != null artifacts: paths: - update-report