From 11e5418b30ea9c0deafe648ba352f9b76b9bf44c Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Thu, 31 Aug 2023 21:15:17 +0200
Subject: [PATCH] ci(gitlab-ci): Run helm chart lint & unittest on any chart
 change

---
 charts/.utils/gitlab-ci.yaml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/charts/.utils/gitlab-ci.yaml b/charts/.utils/gitlab-ci.yaml
index 3f875bbd7..668abb7b2 100644
--- a/charts/.utils/gitlab-ci.yaml
+++ b/charts/.utils/gitlab-ci.yaml
@@ -36,6 +36,10 @@ chart-helm-lint:
         paths:
           - charts/${CHART}/**/*
         compare_to: main
+    - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push"'
+      changes:
+        paths:
+          - charts/${CHART}/**/*
 
 chart-helm-unittest:
   stage: lint
@@ -57,3 +61,7 @@ chart-helm-unittest:
         paths:
           - charts/${CHART}/**/*
         compare_to: main
+    - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push"'
+      changes:
+        paths:
+          - charts/${CHART}/**/*
\ No newline at end of file
-- 
GitLab