Skip to content
Snippets Groups Projects
Commit 9e100161 authored by Gareth Tribello's avatar Gareth Tribello
Browse files

Fixed variable name for github token

parent 46d73299
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment