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.
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
The scripts and documentation in this project are released under the MIT License
Contributions are welcome! See Contributor's Guide