GitHub Action
Setup inso
v1.1.7
Latest version
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
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
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"
}
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