An example action, demonstrating how CLI authors may develop actions that allow setup their of CLIs on GitHub's hosted runners, using JavaScript
This action, which is intended for demonstration use only, sets up the GitHub CLI, gh, on GitHub's hosted 操作 runners.
This action can be run on ubuntu-latest, windows-latest, and macos-latest GitHub 操作 runners, and will install and expose a specified version of the gh CLI on the runner environment.
Setup the gh CLI:
steps:
- uses: github-developer/setup-gh@v1A specific version of the gh CLI can be installed:
steps:
- uses: github-developer/setup-gh@v1
with:
version:
1.1.0The actions supports the following inputs:
version: The version ofghto install, defaulting to1.2.0
For information on Creating a JavaScript action, read the docs.
MIT.