A GitHub Action to install the GitHub Copilot CLI in your workflow.
steps:
- uses: actions/setup-copilot@v0
with:
version: "latest" # optional, defaults to "latest"
github-token: ${{ secrets.COPILOT_TOKEN }} # optional, defaults to github.token
- run: copilot --version| Input | Description | Required | Default |
|---|---|---|---|
version |
Version to install (latest, prerelease, or a specific version like 1.0.0) |
No | latest |
github-token |
GitHub token for downloading Copilot CLI | No | github.token |
| Output | Description |
|---|---|
version |
The version of Copilot CLI installed |
- uses: actions/setup-copilot@v0- uses: actions/setup-copilot@v0
with:
version: "1.2.3"- uses: actions/setup-copilot@v0
with:
github-token: ${{ secrets.GH_TOKEN }}This action uses the official Copilot CLI install script to download and install the binary, with checksum verification. The binary is installed to the runner's tool cache and added to PATH.
Contributions are welcome! See Contributor's Guide
👋 Be nice. See our code of conduct