[coldfusion] Fix script (#198)
Initial release dates can't be scraped as they are not documented in release notes, they must be set manually.
This commit is contained in:
@@ -3,6 +3,16 @@ from bs4 import BeautifulSoup
|
||||
from common import dates
|
||||
from common import endoflife
|
||||
|
||||
# Release dates are not available in the release notes, so we have to set them manually.
|
||||
RELEASE_DATES = {
|
||||
"10.0.0": "2012-05-15", # https://en.wikipedia.org/wiki/Adobe_ColdFusion#Adobe_ColdFusion_10
|
||||
"11.0.0": "2014-04-29", # https://en.wikipedia.org/wiki/Adobe_ColdFusion#Adobe_ColdFusion_11
|
||||
"2016.0.0": "2016-02-16", # https://en.wikipedia.org/wiki/Adobe_ColdFusion#Adobe_ColdFusion_(2016_Release)
|
||||
"2018.0.0": "2018-07-12", # https://coldfusion.adobe.com/2018/07/new-coldfusion-release-adds-performance-monitoring-toolset-for-measuring-monitoring-and-managing-high-performing-web-apps/
|
||||
"2021.0.0": "2020-11-11", # https://community.adobe.com/t5/coldfusion-discussions/introducing-adobe-coldfusion-2021-release/m-p/11585468
|
||||
"2023.0.0": "2022-05-16", # https://coldfusion.adobe.com/2023/05/coldfusion2023-release/
|
||||
}
|
||||
|
||||
URLS = [
|
||||
"https://helpx.adobe.com/coldfusion/kb/coldfusion-10-updates.html",
|
||||
"https://helpx.adobe.com/coldfusion/kb/coldfusion-11-updates.html",
|
||||
@@ -16,7 +26,7 @@ PRODUCT = "coldfusion"
|
||||
REGEX = r"[r|R]elease [d|D]ate[,|:]? (.*?)\).*?Build Number: (.*?)$"
|
||||
|
||||
print(f"::group::{PRODUCT}")
|
||||
versions = {}
|
||||
versions = RELEASE_DATES | {}
|
||||
|
||||
for response in endoflife.fetch_urls(URLS):
|
||||
soup = BeautifulSoup(response.text, features="html5lib")
|
||||
|
||||
Reference in New Issue
Block a user