Skip to content
play

GitHub Action

Setup inso

v1.1.7 Latest version

Setup inso

play

Setup inso

Install inso from Kong

Installation

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

              

- name: Setup inso

uses: Kong/setup-inso@v1.1.7

Learn more about this action in Kong/setup-inso

Choose a version

setup-inso

Install inso so that it can be used in your GitHub Actions workflows

Add the following to your steps definition:

- uses: kong/setup-inso@v1
  with:
    inso-version: 10.1.1

Sample workflow

on:
  push:
    branches:
      - main
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: kong/setup-inso@v1
        with:
          inso-version: 10.1.1
      - run: inso --version

Capturing output

If you need to capture the output for use in a later step, you can add a wrapper script which exposes stdout and stderr by passing the wrapper input and setting it to true:

steps:
  - uses: kong/setup-inso@v1
    with:
      inso-version: 10.1.1
      wrapper: true
  - run: inso --version
    id: inso_version
  - run: echo '${{ toJson(steps.inso_version.outputs) }}'

This would produce the following output:

{
  "stderr": "",
  "stdout": "10.1.1\n"
}

Controlling the compression format

By default, the 3.x series of inso uses bzip and this is auto-detected. If for any reason extraction fails, you may change the compression type by setting the following:

steps:
  - uses: kong/setup-inso@v1
    with:
      inso-version: 3.5.0
      compression: gzip