Virtual-environments: Add GitHub CLI

Created on 29 Apr 2020  路  5Comments  路  Source: actions/virtual-environments

Tool information

Area for Triage:
Packages

Question, Bug, or Feature?:
Feature

Virtual environments affected

  • [x] macOS 10.15
  • [x] Ubuntu 16.04 LTS
  • [x] Ubuntu 18.04 LTS
  • [x] Windows Server 2016 R2
  • [x] Windows Server 2019

Can this tool be installed during the build?
Yes

Tool installation time in runtime
I hope it's fast :)

Are you willing to submit a PR?
Potentially

Packages Ubuntu Windows macOS enhancement feature request

All 5 comments

Hi @alvarosanchez! This tool can be easily installed in runtime by following steps:

### Ubuntu
wget https://github.com/cli/cli/releases/download/v0.7.0/gh_0.7.0_linux_amd64.deb
sudo dpkg -i ./gh_0.7.0_linux_amd64.deb

### Macos
brew install github/gh/gh

### Windows
choco install gh

It take approximately 20 seconds on each OS.

@alepauly What do you think? Perhaps we can add gh to the images as a potential replacement for the hub?

Hi @vmapetr, thanks for the feedback. I know how to install it. The point of this issue is to have it preinstalled, though.

I think it is not big deal to have both hub and gh on images.
They are compatible and looks like functionality is a bit different: https://github.com/cli/cli/blob/master/docs/gh-vs-hub.md

PR has been merged. The changes will be delivered to the production on next deploy

@alvarosanchez all the images have been deployed! I'm going to close the issue, but feel free to contact us if you have any concerns.
Thank you!

Was this page helpful?
0 / 5 - 0 ratings