fix of github_release files

This commit is contained in:
InsanusMokrassar 2020-10-08 18:04:27 +06:00
parent 16d8850ca7
commit f23740a6a5
1 changed files with 3 additions and 3 deletions

View File

@ -1,9 +1,9 @@
private String getCurrentVersionChangelog() {
private String getCurrentVersionChangelog(String version) {
OutputStream changelogDataOS = new ByteArrayOutputStream()
exec {
standardOutput = changelogDataOS
commandLine 'chmod', "+x", './changelog_parser.sh'
commandLine './changelog_parser.sh', "${project.version}", 'CHANGELOG.md'
commandLine './changelog_parser.sh', "$version", 'CHANGELOG.md'
}
return changelogDataOS.toString().trim()
@ -23,6 +23,6 @@ if (new File(projectDir, "secret.gradle").exists()) {
releaseName "${project.version}"
targetCommitish "${project.version}"
body getCurrentVersionChangelog()
body getCurrentVersionChangelog("${project.version}")
}
}