Skip to content

Commit

Permalink
fix github release task
Browse files Browse the repository at this point in the history
  • Loading branch information
kritika-singh3 committed Jun 12, 2020
1 parent 3946647 commit f797b55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin-tasks.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ task previewGithubRelease() {
def tagName = "${project.version}${prerelease ? '-exp' : ''}"

def releaseName = "${prerelease ? 'Experimental: ' : ''}${project.version}"
def changelogHeader = lastTag ? "### Changelog ${lastTag}..${lastCommit.substring(0, 7)}" : "### Changelog"
def changelogHeader = lastTag ? "### Changelog ${lastTag}..${targetCommitish.substring(0, 7)}" : "### Changelog"
def changes = project.git.getCommitsSinceLastTag(lastTag).replaceAll("\"", "").stripIndent().trim()

def previewFile = file("${project.buildDir}/preview.html")
Expand Down

0 comments on commit f797b55

Please sign in to comment.