diff --git a/README.md b/README.md index 2b79fdd..24c5635 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ A GitHub Action to install the [GitHub Copilot CLI](https://github.com/github/co ```yaml steps: - - uses: actions/setup-copilot@v1 + - uses: actions/setup-copilot@v0 with: version: "latest" # optional, defaults to "latest" github-token: ${{ secrets.COPILOT_TOKEN }} # optional, defaults to github.token @@ -31,13 +31,13 @@ steps: ### Install latest version ```yaml -- uses: actions/setup-copilot@v1 +- uses: actions/setup-copilot@v0 ``` ### Install a specific version ```yaml -- uses: actions/setup-copilot@v1 +- uses: actions/setup-copilot@v0 with: version: "1.2.3" ``` @@ -45,7 +45,7 @@ steps: ### Use with a custom token ```yaml -- uses: actions/setup-copilot@v1 +- uses: actions/setup-copilot@v0 with: github-token: ${{ secrets.GH_TOKEN }} ``` diff --git a/action.yml b/action.yml index 1867cb5..8c8ad06 100644 --- a/action.yml +++ b/action.yml @@ -27,9 +27,8 @@ runs: env: VERSION: ${{ inputs.version }} PREFIX: ${{ runner.tool_cache }}/copilot - run: curl -fsSL https://gh.io/copilot-install | bash - env: GITHUB_TOKEN: ${{ inputs.github-token }} + run: curl -fsSL https://gh.io/copilot-install | bash - name: Add to PATH shell: bash