From dfd1e506068bba3110efccc1458365fc7188e5ea Mon Sep 17 00:00:00 2001
From: Julian Rother <julian@cccv.de>
Date: Mon, 13 Sep 2021 03:35:44 +0200
Subject: [PATCH] CI check for CHANGELOG on release

---
 .gitlab-ci.yml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 96d473c0..e89826bd 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -159,6 +159,15 @@ test:package:pip:bullseye:
   dependencies:
   - build:pip
 
+test:package:apt:changelog:
+  stage: test
+  rules:
+  - if: '$CI_COMMIT_TAG =~ /v[0-9]+[.][0-9]+[.][0-9]+.*/'
+  script:
+  - head -n 1 debian/changelog | grep -qv UNRELEASED || { echo 'CHANGELOG not up-to-date!'; exit 1; }
+  dependencies:
+  - build:apt
+
 test:package:apt:buster:
   image: registry.git.cccv.de/uffd/docker-images/buster
   stage: test
-- 
GitLab