mirror of
https://github.com/InsanusMokrassar/KSLog.git
synced 2026-03-03 07:32:27 +00:00
small fix in github_publishing
This commit is contained in:
@@ -1,9 +1,15 @@
|
|||||||
|
interface InjectedExecOps {
|
||||||
|
@Inject //@javax.inject.Inject
|
||||||
|
ExecOperations getExecOps()
|
||||||
|
}
|
||||||
private String getCurrentVersionChangelog() {
|
private String getCurrentVersionChangelog() {
|
||||||
OutputStream changelogDataOS = new ByteArrayOutputStream()
|
OutputStream changelogDataOS = new ByteArrayOutputStream()
|
||||||
exec {
|
|
||||||
|
def injected = project.objects.newInstance(InjectedExecOps)
|
||||||
|
injected.execOps.exec {
|
||||||
commandLine 'chmod', "+x", './changelog_parser.sh'
|
commandLine 'chmod', "+x", './changelog_parser.sh'
|
||||||
}
|
}
|
||||||
exec {
|
injected.execOps.exec {
|
||||||
standardOutput = changelogDataOS
|
standardOutput = changelogDataOS
|
||||||
commandLine './changelog_parser.sh', "${project.version}", 'CHANGELOG.md'
|
commandLine './changelog_parser.sh', "${project.version}", 'CHANGELOG.md'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user