From 9e100161265ff64a048a652ca5f9ca5a23c324b6 Mon Sep 17 00:00:00 2001 From: Gareth Tribello <gareth.tribello@gmail.com> Date: Sat, 27 Jul 2019 09:11:09 +0200 Subject: [PATCH] Fixed variable name for github token --- user-doc/go-spelling | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user-doc/go-spelling b/user-doc/go-spelling index 90e8af1be..cef821fd3 100755 --- a/user-doc/go-spelling +++ b/user-doc/go-spelling @@ -63,14 +63,14 @@ if test -z $TRAVIS ; then # If not a pull request add a comment on the commit message elif [ $TRAVIS_PULL_REQUEST=="false" ] ; then ASPELL_RESULTS=`cat spelling_results` - curl -i -H "Authorization: token $GITHUB_TOKEN" \ + curl -i -H "Authorization: token $GIT_TOKEN" \ -H "Content-Type: application/json" \ -X POST -d "{\"body\":\"$ASPELL_RESULTS\"}" \ https://api.github.com/repos/plumed/plumed2/commits/$TRAVIS_COMMIT/comments #Â If it is a pull request comment on the pull request else ASPELL_RESULTS=`cat spelling_results` - curl -i -H "Authorization: token $GITHUB_TOKEN" \ + curl -i -H "Authorization: token $GIT_TOKEN" \ -H "Content-Type: application/json" \ -X POST -d "{\"body\":\"$ASPELL_RESULTS\"}" \ https://api.github.com/repos/plumed/plumed2/issues/$TRAVIS_PULL_REQUEST/comments -- GitLab