fix of github_release files

This commit is contained in:
InsanusMokrassar 2020-10-08 18:04:27 +06:00
parent 16d8850ca7
commit f23740a6a5

View File

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