Centralize GitHub Workflow groups declaration (#272)
It may not be the best place for that (gha.py would have been better), but it's the shorter / faster way to do it for now. Moreover it now uses logging for writing the group. The logger format has been updated for this to work. This was done to fix issues on GitHub Action logs, where groups were declared after the logs.
This commit is contained in:
@@ -6,7 +6,6 @@ from requests_html import HTMLSession
|
||||
Note that requests_html is used because JavaScript is needed to render the page."""
|
||||
|
||||
product = endoflife.Product("confluence")
|
||||
print(f"::group::{product.name}")
|
||||
r = HTMLSession().get("https://www.atlassian.com/software/confluence/download-archives")
|
||||
r.html.render(sleep=1, scrolldown=3)
|
||||
|
||||
@@ -16,4 +15,3 @@ for version_block in r.html.find('.versions-list'):
|
||||
product.declare_version(version, date)
|
||||
|
||||
product.write()
|
||||
print("::endgroup::")
|
||||
|
||||
Reference in New Issue
Block a user