parent
dd91755808
commit
b6aaa7c9bc
|
@ -8012,7 +8012,7 @@ class Versioning {
|
||||||
static async getVersionDescription() {
|
static async getVersionDescription() {
|
||||||
const versionTags = (await this.git(['tag', '--list', '--merged', 'HEAD', '--sort=-creatordate']))
|
const versionTags = (await this.git(['tag', '--list', '--merged', 'HEAD', '--sort=-creatordate']))
|
||||||
.split('\n')
|
.split('\n')
|
||||||
.filter((tag) => new RegExp(this.grepCompatibleInputVersionRegex).test(tag));
|
.filter(tag => new RegExp(this.grepCompatibleInputVersionRegex).test(tag));
|
||||||
if (versionTags.length === 0) {
|
if (versionTags.length === 0) {
|
||||||
core.warning('No valid version tags found. Using fallback description.');
|
core.warning('No valid version tags found. Using fallback description.');
|
||||||
return this.git(['describe', '--long', '--tags', '--always', 'HEAD']);
|
return this.git(['describe', '--long', '--tags', '--always', 'HEAD']);
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue