diff --git a/src/frequenz/repo/config/cli/version/mike/info.py b/src/frequenz/repo/config/cli/version/mike/info.py index 3e13e74b..1879ce49 100644 --- a/src/frequenz/repo/config/cli/version/mike/info.py +++ b/src/frequenz/repo/config/cli/version/mike/info.py @@ -31,6 +31,8 @@ from .... import version from ....mkdocs import mike +_logger = logging.getLogger(__name__) + class GitHubActionsFormatter(logging.Formatter): """A formatter for GitHub Actions.""" @@ -60,6 +62,11 @@ def format(self, record: logging.LogRecord) -> str: def _output_gha_vars(mike_version: mike.MikeVersionInfo) -> None: """Output mike version information as GitHub Action variables.""" + _logger.debug("Outputting mike version information as GitHub Action variables:") + _logger.debug(" title: %r", mike_version.title) + _logger.debug(" version: %r", mike_version.version) + _logger.debug(" aliases: %r", " ".join(mike_version.aliases)) + gha.set_output("title", mike_version.title) gha.set_output("version", mike_version.version) gha.set_output("aliases", " ".join(mike_version.aliases)) @@ -150,6 +157,7 @@ def _get_tags(repository: str) -> list[str]: .splitlines() ) + _logger.debug("Got tags: %r", tags_str) return tags_str @@ -183,6 +191,7 @@ def _get_branches(repository: str) -> list[str]: .decode("utf-8") .splitlines() ) + _logger.debug("Got branches: %r", branches_str) return branches_str