kopia lustrzana https://github.com/ryukoposting/Signal-Android
Prefer 'nightly' tags when reading current git tag.
rodzic
018782e63d
commit
811d79c873
|
@ -83,7 +83,6 @@ def selectableVariants = [
|
||||||
'nightlyProdFlipper',
|
'nightlyProdFlipper',
|
||||||
'nightlyProdPerf',
|
'nightlyProdPerf',
|
||||||
'nightlyProdRelease',
|
'nightlyProdRelease',
|
||||||
'nightlyStagingPerf',
|
|
||||||
'playProdDebug',
|
'playProdDebug',
|
||||||
'playProdFlipper',
|
'playProdFlipper',
|
||||||
'playProdPerf',
|
'playProdPerf',
|
||||||
|
@ -599,7 +598,8 @@ def getCurrentGitTag() {
|
||||||
def output = stdout.toString().trim()
|
def output = stdout.toString().trim()
|
||||||
|
|
||||||
if (output != null && output.size() > 0) {
|
if (output != null && output.size() > 0) {
|
||||||
return output.split('\n')[0];
|
def tags = output.split('\n').toList()
|
||||||
|
return tags.stream().filter(t -> t.contains('nightly')).findFirst().orElse(tags.get(0))
|
||||||
} else {
|
} else {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue