Skip to content

Commit

Permalink
Delete the github-token input (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanyu66 authored Jan 9, 2023
1 parent 0199075 commit 2a403eb
Show file tree
Hide file tree
Showing 8 changed files with 2,544 additions and 9,248 deletions.
13 changes: 0 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,6 @@ This action can be run on `ubuntu-latest`, `windows-latest`, and `macos-latest`
```yaml
uses: tidbcloud/setup-tidbcloud-cli@v0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
api_public_key: ${{ secrets.TIDB_CLOUD_API_PUBLIC_KEY }}
api_private_key: ${{ secrets.TIDB_CLOUD_API_PRIVATE_KEY }}
```
This is equivalent to:
```yaml
uses: tidbcloud/setup-tidbcloud-cli@v0
with:
version: latest
github_token: ${{ secrets.GITHUB_TOKEN }}
api_public_key: ${{ secrets.TIDB_CLOUD_API_PUBLIC_KEY }}
api_private_key: ${{ secrets.TIDB_CLOUD_API_PRIVATE_KEY }}
```
Expand All @@ -55,7 +43,6 @@ The action supports the following inputs:

- `api_public_key` - (required) The public key of TiDB Cloud api.
- `api_private_key` - (required) The private key of TiDB Cloud api.
- `github_token` - (optional) The `secret.GITHUB_TOKEN` of the repository. If the version is not specified or equals to `latest`, this input is required.
- `version` - (optional) The version of `ticloud` to install, defaulting to latest version.

## License
Expand Down
5 changes: 0 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ inputs:
description: |-
The private key of TiDB Cloud api.
required: true
github_token:
description: |-
The secrets.GITHUB_TOKEN of the repository.
If the version is not specified or equals to `latest`, this input is required.
required: false

branding:
icon: 'terminal'
Expand Down
Loading

0 comments on commit 2a403eb

Please sign in to comment.