Skip to content

Commit e96ba41

Browse files
committed
ensure releases uses GH_TOKEN to fetch data
Currently the releases task is failing on travis because the tokenless request has hit the rate limit. Adding the Authorization header to add the token should lift the rate limit to much higher, and as such the request will succeed - fixing the build!
1 parent 1b2d7f0 commit e96ba41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ chaijs: ./node_modules/chai/chai.js
3232

3333
releases: clean-releases
3434
@mkdir -p _data
35-
@curl -s "https://api.github.com/repos/chaijs/chai/releases" > _data/releases.json
35+
@curl -s $(shell [ -n "${GH_TOKEN}" ] && echo "-H \"Authorization: token ${GH_TOKEN}\"") "https://api.github.com/repos/chaijs/chai/releases" > _data/releases.json
3636

3737
#
3838
# Generate plugins

0 commit comments

Comments
 (0)