From 28650454e51a5e76f4ed1973d41ac7122a3fb0b5 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen.haas@lakedrops.com>
Date: Wed, 20 Mar 2024 12:52:15 +0100
Subject: [PATCH] gitlab-ci-cd/drupal#70 Check4Update now also checks 4
 security and outdated packages before pushing to back to develop branch

---
 check4updates.yml     | 11 +++++++++++
 lakedrops-execute.yml |  3 +++
 lakedrops.yml         | 17 +++++------------
 3 files changed, 19 insertions(+), 12 deletions(-)
 create mode 100644 check4updates.yml

diff --git a/check4updates.yml b/check4updates.yml
new file mode 100644
index 0000000..d1b104d
--- /dev/null
+++ b/check4updates.yml
@@ -0,0 +1,11 @@
+Check 4 Updates:
+  extends: '.check4update'
+
+Check 4 Updates Commit:
+  extends: '.check4updatecommit'
+
+Check 4 Security Vulnerability Advisories:
+  extends: '.check4security'
+
+Check 4 Outdated Packages:
+  extends: '.check4outdated'
diff --git a/lakedrops-execute.yml b/lakedrops-execute.yml
index ed8b291..08f16b2 100644
--- a/lakedrops-execute.yml
+++ b/lakedrops-execute.yml
@@ -1,4 +1,7 @@
 include:
+  - project: gitlab-ci-cd/drupal
+    ref: main
+    file: /check4updates.yml
   - project: gitlab-ci-cd/drupal
     ref: main
     file: /test-and-deploy.yml
diff --git a/lakedrops.yml b/lakedrops.yml
index 42c660c..de40be2 100644
--- a/lakedrops.yml
+++ b/lakedrops.yml
@@ -63,6 +63,11 @@ include:
     file: '/data-handling-ng.yml'
     rules:
       - if: $LAKEDROPS_NG == "yes"
+  - project: 'gitlab-ci-cd/drupal'
+    ref: main
+    file: '/check4updates.yml'
+    rules:
+      - if: $CHECKUPDATES == "yes"
   - project: 'gitlab-ci-cd/drupal'
     ref: main
     file: '/test-and-deploy.yml'
@@ -73,18 +78,6 @@ Validate Environment:
 Sanity Checks:
   extends: '.sanitychecks'
 
-Check 4 Updates:
-  extends: '.check4update'
-
-Check 4 Updates Commit:
-  extends: '.check4updatecommit'
-
-Check 4 Security Vulnerability Advisories:
-  extends: '.check4security'
-
-Check 4 Outdated Packages:
-  extends: '.check4outdated'
-
 Release:
   extends: '.createrelease'
 
-- 
GitLab