We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2740cbd commit 4b41280Copy full SHA for 4b41280
app/build.gradle
@@ -19,10 +19,10 @@ def getGitHubCommit = {
19
it.standardOutput = changeOutput
20
}
21
22
- gitVersionName = hashOutput.toString().trim().substring(0, 7);
+ gitVersionName = hashOutput.asText.get().trim().substring(0, 7)
23
if (!changeOutput.toString().trim().empty) {
24
def pattern = Pattern.compile("\\d+");
25
- def matcher = pattern.matcher(changeOutput.toString().trim())
+ def matcher = pattern.matcher(changeOutput.asText.get().trim())
26
if (matcher.find()) {
27
gitVersionName += "-" + matcher.group()
28
0 commit comments