Skip to content

plantonhq/install-planton-cli-action

Repository files navigation

gh-action-install-planton-cli

This Action installs the planton CLI in your GitHub Actions pipelines so that it can be used by other Actions created for Building and Deploying your Packages & Microservices.

After gh-action-install-planton-cli is run, the planton command is available to other Actions in the pipeline's PATH. You can also use the planto command directly inside of workflow steps.

Usage

Here's an example usage of gh-action-install-planton-cli:

steps:
  # Run `git checkout`
  - uses: actions/checkout@v3
  # Install the `planton` CLI
  - uses: plantoncloud/gh-action-install-planton-cli@main
  # Ensure that `planton` is installed
  - run: planton version

Configuration

Input

You can configure gh-action-install-planton-cli with these parameters:

Parameter Description Default
version The version of the [planton CLI] to install v0.2.54

These parameters are derived from action.yml.

Version

If version is unspecified, the latest version of planton is installed:

steps:
  - uses: actions/checkout@v3
  # Installs latest
  - uses: plantoncloud/gh-action-install-planton-cli@main
  - run: planton version

Use the version parameter to pin to a specific version:

steps:
  - uses: actions/checkout@v3
  # Installs version v0.0.65
  - uses: plantoncloud/gh-action-install-planton-cli@main
    with:
      version: v0.2.54
  # Should output v0.2.54
  - run: planton --version

About

GitHub Action to Install Planton CLI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors