|
1 | 1 | # setup-crate
|
2 | 2 |
|
3 |
| - |
| 3 | +[](https://github.com/extractions/setup-crate/actions/workflows/build.yaml) |
4 | 4 |
|
5 | 5 | This GitHub Action will install a release of a Rust crate for you.
|
6 | 6 |
|
@@ -47,26 +47,14 @@ input. For example the following installs the latest `0.10.x` version of
|
47 | 47 | version: 0.10
|
48 | 48 | ```
|
49 | 49 |
|
50 |
| -In rare circumstances you might get rate limiting errors, this is because this |
51 |
| -workflow has to make requests to GitHub API in order to list available releases. |
52 |
| -If this happens you can set the `GITHUB_TOKEN` environment variable. |
53 |
| - |
54 |
| -```yaml |
55 |
| -- uses: extractions/setup-crate@v1 |
56 |
| - with: |
57 |
| - owner: rossmacarthur |
58 |
| - name: powerpack |
59 |
| - env: |
60 |
| - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
61 |
| -``` |
62 |
| - |
63 | 50 | ### Inputs
|
64 | 51 |
|
65 |
| -| Name | Required | Description | Type | Default | |
66 |
| -| --------- | -------- | --------------------------------------- | ------ | ------- | |
67 |
| -| `owner` | yes | The GitHub user or organization name | string | | |
68 |
| -| `name` | yes | The GitHub repository name | string | | |
69 |
| -| `version` | no | A valid NPM-style semver specification. | string | * | |
| 52 | +| Name | Required | Description | Type | Default | |
| 53 | +| -------------- | -------- | ---------------------------------------- | ------ | --------------------------- | |
| 54 | +| `owner` | yes | The GitHub user or organization name | string | | |
| 55 | +| `name` | yes | The GitHub repository name | string | | |
| 56 | +| `version` | no | A valid NPM-style semver specification | string | * | |
| 57 | +| `github-token` | no | The GitHub token for making API requests | string | ${{ secrets.GITHUB_TOKEN }} | |
70 | 58 |
|
71 | 59 | The semver specification is passed directly to NPM's [semver
|
72 | 60 | package](https://www.npmjs.com/package/semver). This GitHub Action will install
|
|
0 commit comments