@catladder/cli 0.0.0-main-7971bbe7 → 0.0.0-main-39d452d6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3953,7 +3953,7 @@ var BUILD_ID = {
|
|
|
3953
3953
|
var CURRENT_VERSION = {
|
|
3954
3954
|
default: new BashExpression_1.BashExpression(
|
|
3955
3955
|
// because we do shallow fetch, we need to ask the origin
|
|
3956
|
-
"$(tag=$(git ls-remote origin \"refs/tags/v*[0-9]\" 2>/dev/null | cut -f 2- | sort -V | tail -1 | sed 's/refs\\/tags
|
|
3956
|
+
"$(tag=$(git ls-remote origin \"refs/tags/v*[0-9]\" 2>/dev/null | cut -f 2- | sort -V | tail -1 | sed 's/refs\\/tags\\/v//'); [ -z \"$tag\" ] && echo \"0.0.0\" || echo \"$tag\")"),
|
|
3957
3957
|
};
|
|
3958
3958
|
var getBuildInfoVariables = function (ctx) {
|
|
3959
3959
|
var pipelineType = ctx.pipelineType;
|
|
@@ -11390,7 +11390,7 @@ var BUILD_ID = {
|
|
|
11390
11390
|
var CURRENT_VERSION = {
|
|
11391
11391
|
default: new BashExpression_1.BashExpression(
|
|
11392
11392
|
// because we do shallow fetch, we need to ask the origin
|
|
11393
|
-
"$(tag=$(git ls-remote origin \"refs/tags/v*[0-9]\" 2>/dev/null | cut -f 2- | sort -V | tail -1 | sed 's/refs\\/tags
|
|
11393
|
+
"$(tag=$(git ls-remote origin \"refs/tags/v*[0-9]\" 2>/dev/null | cut -f 2- | sort -V | tail -1 | sed 's/refs\\/tags\\/v//'); [ -z \"$tag\" ] && echo \"0.0.0\" || echo \"$tag\")"),
|
|
11394
11394
|
};
|
|
11395
11395
|
var getBuildInfoVariables = function (ctx) {
|
|
11396
11396
|
var pipelineType = ctx.pipelineType;
|
|
@@ -13,7 +13,7 @@ var BUILD_ID = {
|
|
|
13
13
|
var CURRENT_VERSION = {
|
|
14
14
|
default: new BashExpression_1.BashExpression(
|
|
15
15
|
// because we do shallow fetch, we need to ask the origin
|
|
16
|
-
"$(tag=$(git ls-remote origin \"refs/tags/v*[0-9]\" 2>/dev/null | cut -f 2- | sort -V | tail -1 | sed 's/refs\\/tags
|
|
16
|
+
"$(tag=$(git ls-remote origin \"refs/tags/v*[0-9]\" 2>/dev/null | cut -f 2- | sort -V | tail -1 | sed 's/refs\\/tags\\/v//'); [ -z \"$tag\" ] && echo \"0.0.0\" || echo \"$tag\")"),
|
|
17
17
|
};
|
|
18
18
|
var getBuildInfoVariables = function (ctx) {
|
|
19
19
|
var pipelineType = ctx.pipelineType;
|