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!")