diff options
Diffstat (limited to '.travis/generate_changelog.sh')
-rwxr-xr-x | .travis/generate_changelog.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/.travis/generate_changelog.sh b/.travis/generate_changelog.sh index d367a0ecdd..bc8be1023b 100755 --- a/.travis/generate_changelog.sh +++ b/.travis/generate_changelog.sh @@ -10,6 +10,12 @@ fi ORGANIZATION=$(echo "$TRAVIS_REPO_SLUG" | awk -F '/' '{print $1}') PROJECT=$(echo "$TRAVIS_REPO_SLUG" | awk -F '/' '{print $2}') +GIT_MAIL="pawel+bot@netdata.cloud" +GIT_USER="netdatabot" + +echo "--- Initialize git configuration ---" +git config user.email "${GIT_MAIL}" +git config user.name "${GIT_USER}" echo "--- Creating changelog ---" git checkout master @@ -27,4 +33,4 @@ docker run -it -v "$(pwd)":/project markmandel/github-changelog-generator:latest echo "--- Uploading changelog ---" git add CHANGELOG.md git commit -m '[ci skip] Automatic changelog update' -git push "https://${GITHUB_TOKEN}:@${GIT_URL}" +git push "https://${GITHUB_TOKEN}:@$(git config --get remote.origin.url | sed -e 's/^https:\/\///')" |