The tidbcloud/setup-tidbcloud-cli action is a JavaScript action that sets up ticloud in your GitHub Actions workflow by:
- Downloading a specific version of
ticloudand adding it to thePATH. - Configuring
ticloudwith API token.
- This action requires TiDB Cloud API Key to execute
ticloudcommands. See Authentication for more details. - This action only support following runners:
| Architecture Support | macOS | Linux | Windows |
|---|---|---|---|
| arm64 | ✔ | ✔ | ✘ |
| amd64 | ✔ | ✔ | ✔ |
This action can be run on ubuntu-latest, windows-latest, and macos-latest GitHub Actions runners. When running on windows-latest the shell should be set to Bash.
See Prerequisites on how to get API key and then set them to repository secrets.
uses: tidbcloud/setup-tidbcloud-cli@v0
with:
api_public_key: ${{ secrets.TIDB_CLOUD_API_PUBLIC_KEY }}
api_private_key: ${{ secrets.TIDB_CLOUD_API_PRIVATE_KEY }}A specific version of ticloud can be installed(Releases can be found here):
uses: tidbcloud/setup-tidbcloud-cli@v0
with:
version: 0.1.6
api_public_key: ${{ secrets.TIDB_CLOUD_API_PUBLIC_KEY }}
api_private_key: ${{ secrets.TIDB_CLOUD_API_PRIVATE_KEY }}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.version- (optional) The version ofticloudto install, defaulting to latest version.
See LICENSE.