Skip to content

pbufio/pbuf-setup-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

pbuf-setup

Overview

The pbuf-setup GitHub Action is designed to install pbuf-cli, a command-line interface tool, for use in other jobs within a GitHub Actions workflow.

Requirements

  • GitHub Actions runner with either Linux or Darwin operating system.
  • Architecture must be either AMD64 or ARM64.

Features

  • Version Control: Specify the desired version of pbuf-cli to be installed.
  • Platform Compatibility Check: Ensures compatibility with Linux and Darwin operating systems and AMD64 or ARM64 architectures.
  • Automatic Download and Installation: Downloads and installs pbuf-cli automatically to the runner's environment.
  • Token Auth Support: Supports usage of a pbuf_token for operations requiring authentication with the PBUF registry.

Inputs

  • version: The version of the CLI to install. The default is 'v0.4.0'. This input is optional.
  • pbuf_token: The API token for authenticating with the PBUF registry. This input is optional.

Usage

To use this action, include it in your workflow .yml file with the necessary inputs. Below is a sample configuration:

steps:
- name: Install pbuf-cli
  uses: pbufio/[email protected]
  with:
    version: 'v0.4.0' # Optional. Specify the desired version
    pbuf_token: ${{ secrets.PBUF_TOKEN }} # Optional, your PBUF API token

- name: Register Module
  id: pbuf-register
  run: pbuf-cli modules register

- name: Push Module
  id: pbuf-push
  run: pbuf-cli modules push ${{ github.ref_name }}