From 06462024df2e23d9b849fc895b5e49dee0df9758 Mon Sep 17 00:00:00 2001 From: Joel Capitao Date: Thu, 12 Feb 2026 15:51:34 +0100 Subject: [PATCH] ci: skip pipeline when only non-build files change Add workflow rules to skip GitLab CI when commits only modify files that don't affect the build or tests: - renovate.json (Renovate bot config) - README.md (documentation) - LICENSE (license file) - .tekton/* (Konflux pipelines, tested separately) This avoids wasting CI resources on changes that don't need validation. --- .gitlab-ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f4b2b4d..2175264 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,15 @@ --- +workflow: + rules: + # Skip CI if only non-build files changed + - changes: + - renovate.json + - README.md + - LICENSE + - .tekton/* + when: never + - when: always + stages: - build