From 743bd435ec1de0a5a92da297b05a1be914809331 Mon Sep 17 00:00:00 2001 From: MoonlightWave-12 <135532-MoonlightWave-12@users.noreply.gitlab.gnome.org> Date: Wed, 6 Nov 2024 19:03:48 +0100 Subject: [PATCH] CI: Remove 'check_release'-CI-job and 'check_release.py' This CI-job is a reminder to publish a tag, when there is no tag for the current version-number. This does not work well when the version-number is increased after a release, because there will be no such tag, until the next release has been published. Part-of: --- .gitlab-ci.yml | 13 ------------- debian/check_release.py | 11 ----------- 2 files changed, 24 deletions(-) delete mode 100755 debian/check_release.py diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 72bc6b6c..4cf8fea2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -113,19 +113,6 @@ test_style: variables: - $PKG_ONLY == "1" -check_release: - stage: test - needs: [] - only: - refs: - - main - script: - - apt-get -y install git python3 - - (head -n 1 ./debian/changelog && git tag) | ./debian/check_release.py - except: - variables: - - $PKG_ONLY == "1" - pages: stage: deploy needs: diff --git a/debian/check_release.py b/debian/check_release.py deleted file mode 100755 index 7eb64fcb..00000000 --- a/debian/check_release.py +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env python3 - -"""Checks tag before release. -Feed it the first changelog line, and then all available tags. -""" - -import re, sys -version = re.findall("\\((.*)\\)", input())[0] -tag = 'v' + re.findall("([0-9]+\\.[0-9]+\\.[0-9]+).*", version)[0] -if tag not in map(str.strip, sys.stdin.readlines()): - raise Exception("Changelog's current version doesn't have a tag. Push the tag!")