[aws-lambda] Add automation (#166)
The purpose of this new script is to be alerted of new runtimes, while not making updates to the original product file (because release dates cannot be fetched from AWS documentation).
This commit is contained in:
@@ -8,6 +8,13 @@ from os import path
|
||||
USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0'
|
||||
|
||||
|
||||
def load_product(product_name, pathname="website/products"):
|
||||
"""Load the product's file frontmatter.
|
||||
"""
|
||||
with open(f"{pathname}/{product_name}.md", "r") as f:
|
||||
return frontmatter.load(f)
|
||||
|
||||
|
||||
def list_products(method, products_filter=None, pathname="website/products"):
|
||||
"""Return a list of products that are using the same given update method.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user