@@ -6,7 +6,7 @@ A GitHub Action to install the [GitHub Copilot CLI](https://github.com/github/co
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-copilot@v1
|
- uses: actions/setup-copilot@v0
|
||||||
with:
|
with:
|
||||||
version: "latest" # optional, defaults to "latest"
|
version: "latest" # optional, defaults to "latest"
|
||||||
github-token: ${{ secrets.COPILOT_TOKEN }} # optional, defaults to github.token
|
github-token: ${{ secrets.COPILOT_TOKEN }} # optional, defaults to github.token
|
||||||
@@ -31,13 +31,13 @@ steps:
|
|||||||
### Install latest version
|
### Install latest version
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: actions/setup-copilot@v1
|
- uses: actions/setup-copilot@v0
|
||||||
```
|
```
|
||||||
|
|
||||||
### Install a specific version
|
### Install a specific version
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: actions/setup-copilot@v1
|
- uses: actions/setup-copilot@v0
|
||||||
with:
|
with:
|
||||||
version: "1.2.3"
|
version: "1.2.3"
|
||||||
```
|
```
|
||||||
@@ -45,7 +45,7 @@ steps:
|
|||||||
### Use with a custom token
|
### Use with a custom token
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: actions/setup-copilot@v1
|
- uses: actions/setup-copilot@v0
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GH_TOKEN }}
|
github-token: ${{ secrets.GH_TOKEN }}
|
||||||
```
|
```
|
||||||
|
|||||||
+1
-2
@@ -27,9 +27,8 @@ runs:
|
|||||||
env:
|
env:
|
||||||
VERSION: ${{ inputs.version }}
|
VERSION: ${{ inputs.version }}
|
||||||
PREFIX: ${{ runner.tool_cache }}/copilot
|
PREFIX: ${{ runner.tool_cache }}/copilot
|
||||||
run: curl -fsSL https://gh.io/copilot-install | bash
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ inputs.github-token }}
|
GITHUB_TOKEN: ${{ inputs.github-token }}
|
||||||
|
run: curl -fsSL https://gh.io/copilot-install | bash
|
||||||
|
|
||||||
- name: Add to PATH
|
- name: Add to PATH
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
Reference in New Issue
Block a user