Skip to content

An example action, demonstrating how CLI authors may develop actions that allow setup their of CLIs on GitHub's hosted runners, using JavaScript

License

Notifications You must be signed in to change notification settings

github-developer/example-setup-gh

Repository files navigation

⚙️ setup-gh

An example action, demonstrating how CLI authors may develop actions that allow setup their of CLIs on GitHub's hosted runners, using JavaScript

About

This action, which is intended for demonstration use only, sets up the GitHub CLI, gh, on GitHub's hosted Actions runners.

This action can be run on ubuntu-latest, windows-latest, and macos-latest GitHub Actions runners, and will install and expose a specified version of the gh CLI on the runner environment.

Usage

Setup the gh CLI:

steps:
- uses: github-developer/setup-gh@v1

A specific version of the gh CLI can be installed:

steps:
- uses: github-developer/setup-gh@v1
  with:
    version:
      1.1.0

Inputs

The actions supports the following inputs:

  • version: The version of gh to install, defaulting to 1.2.0

Further reading

For information on Creating a JavaScript action, read the docs.

License

MIT.

About

An example action, demonstrating how CLI authors may develop actions that allow setup their of CLIs on GitHub's hosted runners, using JavaScript

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published