fix: add logging for completed semantic release with version information

Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
zhenyus 2025-04-21 11:39:40 +08:00
parent b85cd67d55
commit 733a559222

View File

@ -49,6 +49,7 @@ class SemanticReleasingExecutor {
if (released) {
steps.env.LATEST_VERSION = steps.readFile('VERSION').trim()
steps.env.SEMANTIC_RELEASED = true
steps.log.info("SemanticReleasingExecutor", "Semantic release completed, version: ${steps.env.LATEST_VERSION}")
} else if (versionFileExists) {
steps.log.warn("SemanticReleasingExecutor", "VERSION file exists but was not modified recently, skipping release")
}