Skip to content
download-cloud

GitHub Action

setup-kosli-cli

v1.0.9 Latest version

setup-kosli-cli

download-cloud

setup-kosli-cli

Install the Kosli CLI on Github Actions runners

Installation

Copy and paste the following snippet into your .yml file.

              

- name: setup-kosli-cli

uses: kosli-dev/setup-cli-action@v1.0.9

Learn more about this action in kosli-dev/setup-cli-action

Choose a version

setup-kosli-cli

Sets up the Kosli CLI for GitHub Actions runners

About

This action sets up the Kosli CLI, on GitHub's hosted Actions runners.

This action can be run on ubuntu-latest, windows-latest, and macos-latest GitHub Actions runners, and will install and expose a specified version of the kosli CLI on the runner environment.

Usage

Setup the kosli CLI:

steps:
- uses: kosli-dev/setup-cli-action@v2

A specific version of the kosli CLI can be installed:

steps:
- name: setup-kosli-cli
  uses: kosli-dev/setup-cli-action@v2
  with:
    version:
      2.3.4

Inputs

The actions supports the following inputs:

  • version: The version of kosli to install, defaulting to 2.3.4

Environment variables

  • KOSLI_API_TOKEN: set the Kosli API token.
  • KOSLI_ORG: set the Kosli Flow Org.

Example job

jobs:
  example:
    runs-on: ubuntu-latest
    env:
      KOSLI_API_TOKEN: ${{ secrets.MY_KOSLI_API_TOKEN }}
      KOSLI_ORG: my-org
    steps:
      - name: Setup kosli
        uses: kosli-dev/setup-cli-action@v2
      - name: create flow
        run: |
          kosli create flow my-flow -t artifact,test,pull-request

License

MIT.