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:
Marc Wrobel
2023-12-31 17:00:11 +01:00
committed by GitHub
parent 5ccab8f814
commit f6a8349c46
44 changed files with 18 additions and 113 deletions

View File

@@ -16,7 +16,6 @@ VERSION_AND_DATE_PATTERNS = [
]
product = endoflife.Product("apache-http-server")
print(f"::group::{product.name}")
git = Git("https://github.com/apache/httpd.git")
git.setup()
@@ -35,4 +34,3 @@ for branch in git.list_branches("refs/heads/?.?.x"):
product.declare_version(version, dates.parse_date(date_str))
product.write()
print("::endgroup::")