GitHub action to install and configure the Yontrack CLI.
Version of the Yontrack CLI to install. If not specified, defaults to the latest available.
GitHub token to get the latest version of the CLI (when version is not provided).
URL of the Yontrack instance to target. If this input is set and the token one as well, this action will configure the CLI based on this information.
Authentication token to use to connect to Yontrack (required if URL is set). If this input is set and the url one as well, this action will setup the CLI based on this information.
Optional name of the configuration to create for the CLI. Defaults to default.
Optional value to override max connection retry attempts. If not set, default ontrack-cli behavior applies.
Optional value to override max wait time between connection retry attempts. If not set, default ontrack-cli behavior applies.
Version which has actually been installed.
Setting the CLI automatically:
- name: Setup the CLI
uses: nemerosa/ontrack-github-actions-cli-install
with:
github-token: ${{ github.token }}
url: <ontrack-url>
token: ${{ secrets.ONTRACK_TOKEN }}
# This:
# 1. installs the CLI
# 2. configures the CLI
# After this step, the `yontrack` command is available in the PATH.