This action install CLI and interact with upsun project, so your workflow can access it.
Please refer to the release page for the latest release notes.
uses: upsun/action-cli@v1
with:
# Name of CLI provider.
# Default: 'upsun'
cli_provider: 'upsun'
# Force CLI version to use.
# Default: '' (latest)
cli_version: ''
# Token for authentication.
# You can get from [Upsun Documentation](https://docs.upsun.com/administration/cli/api-tokens.html)
# We recommand to use secret variable to store the token. [more info](https://docs.github.com/en/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions)
#
# Required for use command.
cli_token: "${{ secrets.TOKEN_UPSUN }}"
# Upsun project ID.
#
# Required for some commands.
# Default: ''
project_id: "${{ vars.PROJECT_ID }}"
# Upsun environement name.
#
# Required for some commands.
# Default: ''
environment_name: ''
# Command to execute on CLI.
# Default: ''
command: ''
- Install CLI latest version
- Install CLI specific version
- Install CLI specific provider
- Install CLI specific provider/version
- Run get route command
- uses: upsun/action-cli@v1
- uses: upsun/action-cli@v1
with:
cli_version: '5.0.23'
- uses: upsun/action-cli@v1
with:
cli_provider: 'platform'
- uses: upsun/action-cli@v1
with:
cli_provider: 'platform'
cli_version: '5.0.23'
- uses: upsun/action-cli@v1
with:
cli_token: "${{ secrets.TOKEN_UPSUN }}"
project_id: "${{ vars.PROJECT_ID }}"
environment_name: 'main'
command: route:list