Skip to content
play

GitHub Action

Setup Github Lib

v1.0.0 Latest version

Setup Github Lib

play

Setup Github Lib

Setup your Github Actions runner with Github CLI

Installation

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

              

- name: Setup Github Lib

uses: ButterCam/setup-github-cli@v1.0.0

Learn more about this action in ButterCam/setup-github-cli

Choose a version

setup-github-cli

Actions Status

This github action allows for installation of the Github CLI to be used in your actions pipeline.

It has support for Linux, MacOS and Windows runners.

gh is GitHub on the command line. It brings pull requests, issues, and other GitHub concepts to the terminal next to where you are already working with git and your code.

Usage

See action.yml

Basic:

steps:
- uses: actions/checkout@latest
- uses: ButterCam/setup-github-cli@master

- run: gh --version

Authorized calls to change things:

steps:
- uses: actions/checkout@v1

- name: Install Github
    uses: ButterCam/setup-github-cli@master
    
- name: run gh commands
    env:
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    run: |
         gh release

License

The scripts and documentation in this project are released under the MIT License

Contributions

Contributions are welcome! See Contributor's Guide