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: <https://gitlab.gnome.org/World/Phosh/squeekboard/-/merge_requests/701>
This commit is contained in:
@ -113,19 +113,6 @@ test_style:
|
|||||||
variables:
|
variables:
|
||||||
- $PKG_ONLY == "1"
|
- $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:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
needs:
|
needs:
|
||||||
|
|||||||
11
debian/check_release.py
vendored
11
debian/check_release.py
vendored
@ -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!")
|
|
||||||
Reference in New Issue
Block a user