Skip to content

A GitHub action for interacting with your Tier pricing model using the CLI.

License

Notifications You must be signed in to change notification settings

openformation/setup-tier-cli-action

Repository files navigation

✅ Tier CLI Action

About

This action configures the Tier CLI within GitHub's hosted Actions runners.

Usage

Setup the tier CLI and pass the respective version:

steps:
  - uses: openformation/setup-tier-cli-action@v1
    with:
      version: "0.12.0"

Afterwards, you can use the tier CLI in subsequent steps:

steps:
  - uses: openformation/setup-tier-cli-action@v1
    with:
      version: "0.12.0"
  - run: tier push ...

Development

To develop the action locally, you need to install Devbox. Devbox install all the required tools required for working on the action locally. Once installed, follow these steps to get started with working on the action. Contributions are highly appreciated and welcomed 🫶🏽

devbox shell

bun install

Testing the action locally

The test workflow is located in .github/workflows/test.yml. It is executed remotely on GitHub, but you can also run it locally using act:

act workflow_dispatch