add singular flag to disable semver tagging
This commit is contained in:
@@ -36,6 +36,10 @@ inputs:
|
|||||||
description: ""
|
description: ""
|
||||||
default: "true"
|
default: "true"
|
||||||
|
|
||||||
|
tag_semver_enable:
|
||||||
|
description: "set to false to disable semver tagging completely"
|
||||||
|
default: "true"
|
||||||
|
|
||||||
tag_semver_major:
|
tag_semver_major:
|
||||||
description: ""
|
description: ""
|
||||||
default: "true"
|
default: "true"
|
||||||
|
|||||||
Vendored
+2
@@ -62205,6 +62205,7 @@ function collectTags(information) {
|
|||||||
let tagCommitPrefix = (core.getInput('tag_commit_prefix') ?? '').trim();
|
let tagCommitPrefix = (core.getInput('tag_commit_prefix') ?? '').trim();
|
||||||
|
|
||||||
// handle semver
|
// handle semver
|
||||||
|
if (core.getBooleanInput('tag_semver_enable')) {
|
||||||
if (core.getBooleanInput('tag_semver_major') && isNonEmptyStr(information.semver_major)) {
|
if (core.getBooleanInput('tag_semver_major') && isNonEmptyStr(information.semver_major)) {
|
||||||
tags.push(tagPrefix + information.semver_major);
|
tags.push(tagPrefix + information.semver_major);
|
||||||
foundSemverTag = true;
|
foundSemverTag = true;
|
||||||
@@ -62217,6 +62218,7 @@ function collectTags(information) {
|
|||||||
tags.push(tagPrefix + information.semver_patch);
|
tags.push(tagPrefix + information.semver_patch);
|
||||||
foundSemverTag = true;
|
foundSemverTag = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// handle git tag/branch
|
// handle git tag/branch
|
||||||
if (core.getBooleanInput('tag_ref_normalized_enable') && foundSemverTag === false) {
|
if (core.getBooleanInput('tag_ref_normalized_enable') && foundSemverTag === false) {
|
||||||
|
|||||||
@@ -101,6 +101,7 @@ export function collectTags(information) {
|
|||||||
let tagCommitPrefix = (core.getInput('tag_commit_prefix') ?? '').trim();
|
let tagCommitPrefix = (core.getInput('tag_commit_prefix') ?? '').trim();
|
||||||
|
|
||||||
// handle semver
|
// handle semver
|
||||||
|
if (core.getBooleanInput('tag_semver_enable')) {
|
||||||
if (core.getBooleanInput('tag_semver_major') && isNonEmptyStr(information.semver_major)) {
|
if (core.getBooleanInput('tag_semver_major') && isNonEmptyStr(information.semver_major)) {
|
||||||
tags.push(tagPrefix + information.semver_major);
|
tags.push(tagPrefix + information.semver_major);
|
||||||
foundSemverTag = true;
|
foundSemverTag = true;
|
||||||
@@ -113,6 +114,7 @@ export function collectTags(information) {
|
|||||||
tags.push(tagPrefix + information.semver_patch);
|
tags.push(tagPrefix + information.semver_patch);
|
||||||
foundSemverTag = true;
|
foundSemverTag = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// handle git tag/branch
|
// handle git tag/branch
|
||||||
if (core.getBooleanInput('tag_ref_normalized_enable') && foundSemverTag === false) {
|
if (core.getBooleanInput('tag_ref_normalized_enable') && foundSemverTag === false) {
|
||||||
|
|||||||
Reference in New Issue
Block a user