add tags_additional option
This commit is contained in:
parent
7fb1ffb6a6
commit
8065445970
@ -36,6 +36,9 @@ inputs:
|
||||
description: ""
|
||||
default: "true"
|
||||
|
||||
tags_additional:
|
||||
description: "list of additional tags to add, as CSV"
|
||||
|
||||
tag_semver_enable:
|
||||
description: "set to false to disable semver tagging completely"
|
||||
default: "true"
|
||||
|
||||
9
dist/index.js
vendored
9
dist/index.js
vendored
@ -62232,6 +62232,15 @@ 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);
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user