Skip to content

Commit

Permalink
Merge pull request #11 from rajatjindal/auto-github-token
Browse files Browse the repository at this point in the history
use ${{ github.token }} by default for github token
  • Loading branch information
rajatjindal committed Feb 25, 2024
2 parents e713ed6 + d0325fe commit d742827
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 16 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/wasm-tools-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ jobs:

- name: setup wasm-tools
uses: ./wasm-tools/setup/
with:
github_token: ${{ github.token }}

- name: verify wasm-tools setup
run: wasm-tools --version
Expand All @@ -75,7 +73,6 @@ jobs:
uses: ./wasm-tools/setup/
with:
version: ${{ matrix.version }}
github_token: ${{ github.token }}

- name: wasm-tools setup successful
if: ${{ contains(env.WASM_TOOLS_VERSION, matrix.version) }}
Expand Down Expand Up @@ -107,7 +104,6 @@ jobs:
uses: ./wasm-tools/setup/
with:
version: v${{ matrix.version }}
github_token: ${{ github.token }}

- name: wasm-tools setup successful
if: ${{ contains(env.WASM_TOOLS_VERSION, matrix.version) }}
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/wasmtime-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ jobs:

- name: setup wasmtime
uses: ./wasmtime/setup/
with:
github_token: ${{ github.token }}

- name: verify wasmtime setup
run: wasmtime --version
Expand All @@ -75,13 +73,11 @@ jobs:
uses: ./wasmtime/setup/
with:
version: ${{ matrix.version }}
github_token: ${{ github.token }}

- name: setup wasmtime with v
uses: ./wasmtime/setup/
with:
version: v${{ matrix.version }}
github_token: ${{ github.token }}

- name: wasmtime setup successful
if: ${{ contains(env.WASMTIME_VERSION, matrix.version) }}
Expand Down Expand Up @@ -113,7 +109,6 @@ jobs:
uses: ./wasmtime/setup/
with:
version: v${{ matrix.version }}
github_token: ${{ github.token }}

- name: wasmtime setup successful
if: ${{ contains(env.WASMTIME_VERSION, matrix.version) }}
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/wit-bindgen-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ jobs:

- name: setup wit-bindgen
uses: ./wit-bindgen/setup/
with:
github_token: ${{ github.token }}

- name: verify wit-bindgen setup
run: wit-bindgen --version
Expand All @@ -75,7 +73,6 @@ jobs:
uses: ./wit-bindgen/setup/
with:
version: ${{ matrix.version }}
github_token: ${{ github.token }}

- name: wit-bindgen setup successful
if: ${{ contains(env.WIT_BINDGEN_VERSION, matrix.version) }}
Expand Down Expand Up @@ -107,7 +104,6 @@ jobs:
uses: ./wit-bindgen/setup/
with:
version: v${{ matrix.version }}
github_token: ${{ github.token }}

- name: wit-bindgen setup successful
if: ${{ contains(env.WIT_BINDGEN_VERSION, matrix.version) }}
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Let’s take a look at each one to learn about the required inputs and walk thro
| Name | Required | Default | Description |
| ------------ | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| `version` | False | `latest` | The version of `wasmtime` to install. |
| `github_token` | False | - | The GitHub token for querying/downloading `wasmtime` releases. If provided, it avoids GitHub API rate limiting during GitHub action executions |
| `github_token` | False | `${{ github.token }}` | The GitHub token for querying/downloading `wasmtime` releases. If provided, it avoids GitHub API rate limiting during GitHub action executions. |

### Examples

Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
| Name | Required | Default | Description |
| ------------ | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| `version` | False | `latest` | The version of `wasm-tools` to install. |
| `github_token` | False | - | The GitHub token for querying/downloading `wasm-tools` releases. If provided, it avoids GitHub API rate limiting during GitHub action executions |
| `github_token` | False | `${{ github.token }}` | The GitHub token for querying/downloading `wasm-tools` releases. If provided, it avoids GitHub API rate limiting during GitHub action executions |

### Examples

Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
| Name | Required | Default | Description |
| ------------ | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| `version` | False | `latest` | The version of `wit-bindgen` to install. |
| `github_token` | False | - | The GitHub token for querying/downloading `wit-bindgen` releases. If provided, it avoids GitHub API rate limiting during GitHub action executions |
| `github_token` | False | `${{ github.token }}` | The GitHub token for querying/downloading `wit-bindgen` releases. If provided, it avoids GitHub API rate limiting during GitHub action executions |

### Examples

Expand Down
1 change: 1 addition & 0 deletions wasm-tools/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ inputs:
github_token:
required: false
description: 'When downloading wasm-tools, GitHub may rate limit anonymous downloads. Set this to use authenticated downloads, which are are subject to a higher limits.'
default: ${{ github.token }}
runs:
using: 'node20'
main: '../../dist/wasm-tools/setup/index.js'
1 change: 1 addition & 0 deletions wasmtime/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ inputs:
github_token:
required: false
description: 'When downloading wasmtime, GitHub may rate limit anonymous downloads. Set this to use authenticated downloads, which are are subject to a higher limits.'
default: ${{ github.token }}
runs:
using: 'node20'
main: '../../dist/wasmtime/setup/index.js'
1 change: 1 addition & 0 deletions wit-bindgen/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ inputs:
github_token:
required: false
description: 'When downloading wit-bindgen, GitHub may rate limit anonymous downloads. Set this to use authenticated downloads, which are are subject to a higher limits.'
default: ${{ github.token }}
runs:
using: 'node20'
main: '../../dist/wit-bindgen/setup/index.js'

0 comments on commit d742827

Please sign in to comment.