add tags_additional option

This commit is contained in:
2023-12-06 15:41:24 +01:00
parent 7fb1ffb6a6
commit 8065445970
3 changed files with 21 additions and 0 deletions
+9
View File
@@ -128,6 +128,15 @@ export function collectTags(information) {
}
}
// handle additional tags
core.getInput('tags_additional')
.split(',')
.map(s => s.trim())
.filter(s => s.length > 0)
.forEach(t => {
tags.push(t);
});
// handle commit sha
if (core.getBooleanInput('tag_commit_enable') && isNonEmptyStr(github.context.sha)) {
tags.push(tagPrefix + tagCommitPrefix + github.context.sha + tagSuffix);