[typo3] Add release automation
Using tags misses all ELTS releases, which are relevant for ELTS-only release cycles. Important changes: - very old v3 and v4 releases completely dropped except for 3.3.0, and 3.5.0. - We track only as far back as v7, so dropping v4 and earlier should be fine. - 7.0.1 and 9.3.2 are missing, which is okay because both are superseded. Fixes #92.
This commit is contained in:
21
src/typo3.py
Normal file
21
src/typo3.py
Normal file
@@ -0,0 +1,21 @@
|
||||
import json
|
||||
from common import endoflife
|
||||
|
||||
PRODUCT = "typo3"
|
||||
URL = "https://get.typo3.org/api/v1/release/"
|
||||
|
||||
print(f"::group::{PRODUCT}")
|
||||
releases = {}
|
||||
|
||||
response = endoflife.fetch_url(URL)
|
||||
data = json.loads(response)
|
||||
for v in data:
|
||||
if v['type'] != 'development':
|
||||
date = v["date"][0:10]
|
||||
releases[v["version"]] = date
|
||||
print(f"{v['version']}: {date}")
|
||||
|
||||
endoflife.write_releases(PRODUCT, dict(sorted(
|
||||
releases.items(), key=lambda x: list(map(int, x[0].split(".")))
|
||||
)))
|
||||
print("::endgroup::")
|
||||
Reference in New Issue
Block a user