This GitHub Action installs omni on a GitHub Actions
runner, and optionally runs omni up to setup dependencies.
To use this action, add the following step to your GitHub Actions workflow:
steps:
- name: Install omni
uses: omnicli/setup-action@v0
with:
up: true
- name: Show omni status
shell: bash
run: omni statusBy default, the action installs the latest version of omni. You can specify the version of omni to install using the version input:
steps:
- name: Install omni
uses: omncli/setup-action@v0
with:
version: 0.0.23| Parameter | Description | Default |
|---|---|---|
version |
The version of omni to install | latest |
up |
Whether or not to run omni up after installing omni |
false |
up_args |
Additional arguments to pass to omni up |
null |
up_retries |
Number of times to retry omni up if it fails (0 = no retries) |
0 |
up_retry_delay |
Base delay in milliseconds between retry attempts | 1000 |
up_retry_jitter |
Jitter percentage to add randomness to retry delays | 10 |
up_retry_backoff |
Backoff multiplier for exponential backoff between retries | 1 |
check |
Whether or not to run omni config check after installing omni |
false |
check_patterns |
Additional patterns to check for when running omni config check; must provide one pattern per line |
null |
check_ignore |
Error codes to ignore when running omni config check; must provide one error code per line |
null |
check_select |
Error codes to select when running omni config check; must provide one error code per line |
null |
cache |
Cache omni's environment using GitHub's cache | true |
cache_write |
Whether or not to disable the cache write, while still allowing cache reads | true |
cache_check_hash |
Whether or not to check the hash of the cache contents before saving the cache, to save on transfer times if the cache is large | true |
cache_key_prefix |
The cache key prefix to use; if changed, will invalidate any pre-existing cache | omni |
This project is licensed under the MIT License. See the LICENSE file for details.