Skip to content
play

GitHub Action

Install GH CLI

v0.2.0 Latest version

Install GH CLI

play

Install GH CLI

Download, cache and install the GH CLI to the workspace

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Install GH CLI

uses: dev-hanz-ops/install-gh-cli-action@v0.2.0

Learn more about this action in dev-hanz-ops/install-gh-cli-action

Choose a version

Install GH CLI action

Selfhosted runners do not come with the GH CLI out of the box. This action is an easy-to-use way to install it.

As of now, only linux amd64 is supported.

Usage

- name: Install GH CLI
  uses: dev-hanz-ops/install-gh-cli-action@v0.1.0
  with:
    gh-cli-version: 2.32.0 # optional, see action.yml for current default