Skip to content

Commit

Permalink
install gh cli
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-hanz-ops committed Jul 25, 2022
1 parent 1674241 commit e1f4e01
Show file tree
Hide file tree
Showing 6 changed files with 6,384 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
# 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.

## Usage

```yaml
- name: Install GH CLI
uses: dev-hanz-ops/install-gh-cli-action
with:
gh-cli-version: 2.14.2 # optional, see action.yml for current default
```
11 changes: 11 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: 'Install GH CLI'
description: 'Download, cache and install the GH CLI to the workspace'
author: 'dev-hanz-ops'
inputs:
gh-cli-version:
description: 'Version of the GitHub-CLI that should be installed'
required: false
default: '2.14.2'
runs:
using: 'node12'
main: 'dist/index.js'
Loading

0 comments on commit e1f4e01

Please sign in to comment.