Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ For more advanced usage, see the following examples:
| `version` | WASI SDK version to install (e.g., `25`) | No | `latest` |
| `install-path` | Directory to install WASI SDK to | No | `$RUNNER_TOOL_CACHE/wasi-sdk` |
| `add-to-path` | Add WASI SDK `bin` directory to the `PATH` | No | `true` |
| `github-token` | GitHub token for API requests | No | `${{ github.token }}` |

Note that passing `latest` as the `version` will attempt to retrieve the latest [release
tag][releases]. See GitHub's [variables reference] for a description of `RUNNER_TOOL_CACHE`; other
Expand Down
6 changes: 6 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ inputs:
description: 'Add WASI SDK bin directory to PATH'
required: false
default: 'true'
github-token:
description: 'GitHub token for API requests (avoids rate limiting)'
required: false
default: ${{ github.token }}

outputs:
wasi-sdk-path:
Expand All @@ -35,6 +39,8 @@ runs:
- name: Install WASI SDK
id: install
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.github-token }}
run: |
$GITHUB_ACTION_PATH/install.py -v \
--version '${{ inputs.version }}' \
Expand Down