gscho / setup-state-tool

Installs the ActiveState CLI

Home Page:https://github.com/ActiveState/cli

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

setup-state-tool

An action to install the ActiveState State Tool CLI and add it to the $GITHUB_PATH.

This makes it easy to install projects from the ActiveState platform during a GitHub actions workflow.

Inputs

name type default description required
version string latest Version of the State Tool CLI to install false
channel string release Channel to download the State Tool CLI from false
activestate-api-key string API key used to authenticate to the ActiveState platform false
opt-in string true Opt-in to unstable state tool commands false

Examples

Example using the default configuration to install state tool for use with public projects:

name: "my workflow"
on:
  workflow_dispatch:

jobs:
  install-state-tool-cli:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - uses: gscho/setup-state-tool@v1
    - name: run help command
      run: state --help

Example using the latest beta state tool and an api-key:

name: "my workflow"
on:
  workflow_dispatch:

jobs:
  install-state-tool-cli:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - uses: gscho/setup-state-tool@v1
      with:
        activestate-api-key: foobar
        channel: beta
    - name: run help command
      run: state --help