fix(semantic-release): add additional branch filter for rules

Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
zhenyus 2025-02-18 05:26:29 +08:00
parent d1d8ee92cb
commit 4a068d9b9c

View File

@ -40,6 +40,12 @@ class SemanticReleasingExecutor {
if (released) {
steps.env.LATEST_VERSION = steps.readFile('VERSION').trim()
steps.env.SEMANTIC_RELEASED = true
// TODO: Workaround for semantic-release not committing changes
steps.sh "git config user.name \"freeleaps-gitops-bot\""
steps.sh "git config user.email \"gitops@mathmast.com\""
def repoUrl = steps.sh(script: 'git config --get remote.origin.url', returnStdout: true).trim()
steps.sh "git remote add ci_origin ${repoUrl}"
steps.sh "git push ci_origin HEAD:master"
}
}
}