Commit e5018c1
authored
Fix workflows failing because releases weren't being found (#130)
GitHub [rate limits API
requests](https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2022-11-28).
The `install.sh` script uses the API through `curl` to determine the
download URL for the correct PhotonVision jar file for each image.
Building the images resulted in enough closely spaced calls to trigger
the rate limit for some runners with the resulting response from the
server:
```
{"message":"API rate limit exceeded for XXX.XXX.XXX.XXX. (But here'\''s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"}
```
This PR fixes the problem by allowing then `install.sh` script to use
the GITHUB_TOKEN to authenticate the request when it is running as a
workflow.1 parent d3badb2 commit e5018c1
2 files changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
216 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
217 | 224 | | |
218 | 225 | | |
219 | 226 | | |
| |||
0 commit comments