From 10f8972dbd34dd5937f03d7ed3a894fe8fd7bfec Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Mon, 25 Feb 2019 14:54:49 +0100 Subject: [PATCH] Travis: fix newlines and URLs with commit messages (#142) --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8388df4..9068e34 100644 --- a/.travis.yml +++ b/.travis.yml @@ -99,7 +99,8 @@ after_success: git config user.name "awesome-robot on Travis CI" git config user.email "awesome-robot@users.noreply.github.com" git add --all . - git commit -m "Update from Travis for awesome-www@${commit_hash}\n\nCommits: https://github.com/awesomeWM/awesome/compare/${TRAVIS_COMMIT_RANGE/.../..}\nBuild URL: https://travis-ci.com/awesomeWM/awesome/builds/${TRAVIS_BUILD_ID}" + NL=$'\n' + git commit -m "Update from Travis for awesome-www@${commit_hash}${NL}${NL}Commits: https://github.com/awesomeWM/awesome-www/compare/${TRAVIS_COMMIT_RANGE/.../..}${NL}Build URL: https://travis-ci.com/awesomeWM/awesome-www/builds/${TRAVIS_BUILD_ID}" git --no-pager show --stat git push origin "$(git symbolic-ref --quiet HEAD)" 2>&1 | sed "s/$GH_APIDOC_TOKEN/GH_APIDOC_TOKEN/g"