Selfhosted runners do not come with the GH CLI out of the box. This action is an easy-to-use way to install it. Also support automatically installing the latest release.
- name: Install GH CLI
uses: alexnorell/install-gh-cli-action
with:
cli-release: v2.24.3
gh-platform: linux
gh-arch: amd64
- name: Install GH CLI
uses: alexnorell/install-gh-cli-action
with:
cli-release: latest
gh-platform: linux
gh-arch: amd64
Variable | Description | Default |
---|---|---|
cli-release |
Version of the GH CLI to install | latest |
platform |
Platform to use for the binary | linux |
arch |
CPU Architecture for the binary | amd64 |