Skip to content

Commit

Permalink
Merge pull request #516 from TheRealAgentK/master
Browse files Browse the repository at this point in the history
Making changelog build depend on user.properties file for path to too…
  • Loading branch information
TheRealAgentK authored Jan 1, 2018
2 parents 80add18 + 396ccbe commit 5555862
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,13 @@ task githubChangelogGenerator {

doLast {
def latestTag = getLatestTag()
def p = ['src/main/resources/scripts/writeChangelog.sh', latestTag].execute()

def props = new Properties()
props.load(new FileInputStream("user.properties"))
def changelogBinary = props.getProperty("user.githubChanglogGeneratorBinary")
def githubToken = props.getProperty("user.githubToken")

def p = ['src/main/resources/scripts/writeChangelog.sh', changelogBinary, githubToken, latestTag].execute()
println p.text
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/scripts/writeChangelog.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
/Users/kai/.rbenv/shims/github_changelog_generator -u cflint -p CFLint --token <github token> --output CHANGELOG.md --base CHANGELOG.md --no-unreleased --since-tag $1 --header-label
$1 -u cflint -p CFLint --token $2 --output CHANGELOG.md --base CHANGELOG.md --no-unreleased --since-tag $3 --header-label

0 comments on commit 5555862

Please sign in to comment.