/setup-inso

Make inso available in your GitHub Actions workflows

Primary LanguageJavaScriptApache License 2.0Apache-2.0

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: 3.5.0

Sample workflow

on:
  push:
    branches:
      - main
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: kong/setup-inso@v1
        with:
          inso-version: 3.5.0
      - 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: 3.5.0
      wrapper: true
  - run: inso --version
    id: inso_version
  - run: echo '${{ toJson(steps.inso_version.outputs) }}'

This would produce the following output:

{
  "stderr": "",
  "stdout": "3.5.0\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