mirror of
				https://github.com/InsanusMokrassar/MicroUtils.git
				synced 2025-11-03 21:51:59 +00:00 
			
		
		
		
	Update github_release.gradle
This commit is contained in:
		@@ -1,8 +1,11 @@
 | 
			
		||||
private String getCurrentVersionChangelog() {
 | 
			
		||||
    OutputStream changelogDataOS = new ByteArrayOutputStream()
 | 
			
		||||
    exec {
 | 
			
		||||
        commandLine 'chmod', "+x", './changelog_parser.sh'
 | 
			
		||||
    }
 | 
			
		||||
    exec {
 | 
			
		||||
        standardOutput = changelogDataOS
 | 
			
		||||
        commandLine './changelog_info_retriever', "$library_version", 'CHANGELOG.md'
 | 
			
		||||
        commandLine './changelog_parser.sh', "${project.version}", 'CHANGELOG.md'
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return changelogDataOS.toString().trim()
 | 
			
		||||
@@ -15,12 +18,12 @@ if (new File(projectDir, "secret.gradle").exists()) {
 | 
			
		||||
    githubRelease {
 | 
			
		||||
        token "${project.property('GITHUB_RELEASE_TOKEN')}"
 | 
			
		||||
 | 
			
		||||
        owner "InsanusMokrassar"
 | 
			
		||||
        repo "MicroUtils"
 | 
			
		||||
        owner "HERE MUST BE PROJECT OWNER NAME"
 | 
			
		||||
        repo "${rootProject.name}"
 | 
			
		||||
 | 
			
		||||
        tagName "$library_version"
 | 
			
		||||
        releaseName "$library_version"
 | 
			
		||||
        targetCommitish "$library_version"
 | 
			
		||||
        tagName "${project.version}"
 | 
			
		||||
        releaseName "${project.version}"
 | 
			
		||||
        targetCommitish "${project.version}"
 | 
			
		||||
 | 
			
		||||
        body getCurrentVersionChangelog()
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user