Skip to content

Commit 91459e2

Browse files
Massimiliano Pippimasci
Massimiliano Pippi
authored andcommitted
bump deps, fix format, add docs
1 parent 9a4cc34 commit 91459e2

File tree

4 files changed

+2592
-853
lines changed

4 files changed

+2592
-853
lines changed

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,17 @@ To pin the exact version:
3939
version: '3.9.1'
4040
```
4141

42+
The action queries the GitHub API to fetch releases data, to avoid rate limiting,
43+
pass the default token with the `repo-token` variable:
44+
45+
```yaml
46+
- name: Install Protoc
47+
uses: arduino/setup-protoc@master
48+
with:
49+
repo-token: ${{ secrets.GITHUB_TOKEN }}
50+
```
51+
52+
4253
## Development
4354

4455
To work on the codebase you have to install all the dependencies:

__tests__/main.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ process.env["RUNNER_TOOL_CACHE"] = toolDir;
1414
import * as installer from "../src/installer";
1515

1616
describe("installer tests", () => {
17-
beforeEach(async function () {
17+
beforeEach(async function() {
1818
await io.rmRF(toolDir);
1919
await io.rmRF(tempDir);
2020
await io.mkdirP(toolDir);

action.yml

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ inputs:
88
include-pre-releases:
99
description: 'Include github pre-releases in latest version calculation'
1010
default: 'false'
11+
repo-token:
12+
description: 'GitHub repo token to use to avoid rate limiter'
13+
default: ''
1114
runs:
1215
using: 'node12'
1316
main: 'lib/main.js'

0 commit comments

Comments
 (0)